Thursday, August 18, 2016

Installing PowerShell on OSX

Today, Microsoft announced the open sourcing of PowerShell. Not only does this mean that we (the community) can contribute to PowerShell in the form of issues and pull requests, but PowerShell is now available for OSX and *nix!
As an owner of numerous Apple products (and a perpetual PowerShell fanboy), I quickly jumped on the bandwagon and installed PowerShell on my Macbook Pro. This post walks through installing PowerShell on OSX and configuring the OSX terminal to provide a familiar PowerShell user experience.

First things first, let us take a journey to the PowerShell project on github.


From this page, you can view the source code, check out issues, and check out releases. You have the option of downloading the source and compiling it, but the PowerShell team has already done this for you. By visiting the "Releases" page, you will be presented with a list of PowerShell releases. To download the latest and greatest version, look for the the "Latest release" tag which as of this posting is v6.0.0-alpha.9.



Once you identify your desired release, scroll down to the release's download section and click on the .pkg (or Apple Software Package).


From there, it installs like any other internet application.


NOTE: If your security settings do not allow installation of applications from "non-identified developers", you will have to allow the installation of PowerShell via the Security & Privacy settings menu.

Congratulations! You have installed PowerShell on your Mac! You can now open up the Terminal App, execute /usr/local/bin/powershell (or type powershell) and start running PowerShell commands just like on Windows. After a couple hours of using PowerShell in the OSX Terminal, I found the Terminal settings to not be ideal for PowerShell (particularly the syntax highlighting). I decided to create a custom PowerShell profile to create the same familiar experience that I am used to on Windows. To do this open the Terminal preferences menu by selecting Terminal > Preferences.


We want to create a custom Terminal profile for PowerShell. In the Preferences menu, select "Profiles" and click on the + symbol in the bottom right corner. First things first, lets set our background and text colors. I chose White, Magnesium, and Cantaloupe for my Text, Bold Text, and Selection colors respectively (trying to mirror powershell.exe as much as possible).


For the Background color I selected a custom color based on Windows powershell.exe blue. You can set the color by choosing the RGB Sliders option with Hex 0x001845.


Next, I want to set this profile to automatically run PowerShell upon the Terminal starting. To do this visit the profile's "Shell" tab and enter a "Run command" of /usr/local/bin/powershell.

The last optional step is to set the PowerShell as the default Terminal profile, assuming you always want to use PowerShell like I do. This will cause the Terminal app to always start with the PowerShell profile set.


Open a new Terminal window, and you will hopefully have a fairly familiar experience!


82 comments:

  1. Thanks for this information, very useful

    ReplyDelete
  2. Digital Seva Most of the time I don’t make comments on websites, but I'd like to say that this article really forced me to do so. Really nice post!

    ReplyDelete
  3. I like this website its a master peace ! Glad I noticed this on google .apps pour pc

    ReplyDelete
  4. The post is written in very a good manner and it contains many useful informationfor me.Macbook Pro gebraucht
    >

    ReplyDelete
  5. Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing. 바카라사이트

    ReplyDelete
  6. Because of this , it truly is superior you can applicable research prior to providing. It will be possible to share larger document that way. Android App Development

    ReplyDelete
  7. Are you the one who studies this subject?? I have a headache with this subject.온라인바둑이Looking at your writing was very helpful.

    ReplyDelete
  8. Why couldn't I have the same or similar opinions as you? T^T I hope you also visit my blog and give us a good opinion.먹튀검증

    ReplyDelete
  9. When I read an article on this topic, 먹튀검증 the first thought was profound and difficult, and I wondered if others could understand.. My site has a discussion board for articles and photos similar to this topic. Could you please visit me when you have time to discuss this topic?

    ReplyDelete
  10. Thank you and thank you so much. I'll share you useful information.토토사이트

    ReplyDelete
  11. Hello ! I am the one who writes posts on these topics 메이저놀이터 I would like to write an article based on your article. When can I ask for a review?

    ReplyDelete
  12. That is a very good tip especially to those new to the blogosphere.
    Short but very accurate info… Appreciate
    your sharing this one. A must read post경기오피

    ReplyDelete
  13. I want to start a blog to write about everything that happens at school and
    with friends…anonymously…any sugestions?.해외선물사이트

    ReplyDelete
  14. I'm writing on this topic these days, 먹튀검증, but I have stopped writing because there is no reference material. Then I accidentally found your article. I can refer to a variety of materials, so I think the work I was preparing will work! Thank you for your efforts.

    ReplyDelete
  15. I want to start a blog to write about everything that happens at school and
    with friends…anonymously…any sugestions?.무료야동

    ReplyDelete
  16. Great ideas and great information. Worth writing very well seen. Tips for you to continue posting better are on my website. It will definitely help you a lot. 안전놀이터

    ReplyDelete
  17. Hello. I love the way you write. Would you like to guestpost my website? There are a lot of people on my website who visit me in relation to your writing. It will definitely be a great opportunity. 먹튀검증

    ReplyDelete
  18. This is a great post with great information. Bookmarked your blog. We hope you will continue to post these good information frequently. 안전놀이터

    ReplyDelete
  19. I seriously love your website.. Excellent colors & theme.
    Did you create this amazing site yourself? Please reply back as I’m attempting to create my own site
    and want to know where you got this from or just what the theme is named.
    Cheers!무료웹툰

    ReplyDelete
  20. I'm writing on this topic these days, , but I have stopped writing because there is no reference material. Then I accidentally found your article. I can refer to a variety of materials, so I think the work I was preparing will work! Thank you for your efforts. 바둑이사이트

    ReplyDelete
  21. I will bookmark this site and come to it from time to time. Your writing has been of great help to me.먹튀검증사이트

    ReplyDelete
  22. I basically need to disclose to you that I am new to weblog and unquestionably loved this blog website. Likely I'm going to bookmark your blog . You totally have magnificent stories. Cheers for imparting to us your 먹튀검증

    ReplyDelete
  23. Hello I am so delighted I located your blog about 안전놀이터, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work.

    ReplyDelete
  24. Your article was very impressive to me. It was unexpected information,but after reading it like this 메이저토토사이트, I found it very interesting.

    ReplyDelete
  25. What kind of article do you like?? If someone asks, they will say that they like the article related to 메이저사이트 just like your article. If you are interested in my writing, please visit !!

    ReplyDelete
  26. I think it's pointless to read such articles anymore. I think now is the time to go one step ahead. I seek progressive writing. When you come to my site, there are many more progressive articles and articles related to 주식디비, Come to play.

    ReplyDelete
  27. I am writing on this topic. Your writing has helped me a lot. I would like to have the opportunity to discuss with you on my website. 안전놀이터

    ReplyDelete
  28. I regularly check your posts. Because your posts convey very good and accurate information. I hope you continue to write. 먹튀검증

    ReplyDelete
  29. There are many very interesting topics on my website that you may like. I hope you visit my website and have a good time. 안전놀이터

    ReplyDelete
  30. I've been searching for hours on this topic and finally found your post. , I have read your post and I am very impressed. We prefer your opinion and will visit this site frequently to refer to your opinion. When would you like to visit my site? 토토사이트

    ReplyDelete
  31. Your writing is perfect and complete. However, I think it will be more wonderful if your post includes additional topics that I am thinking of. I have a lot of posts on my site similar to your topic. Would you like to visit once? 토토커뮤니티

    ReplyDelete
  32. I seriously love your website.. Excellent colors & theme.
    Did you create this amazing site yourself? Please reply back as I’m attempting to create my own site
    and want to know where you got this from or just what the theme is named.
    Cheers!해외선물옵션

    ReplyDelete
  33. Seriously plenty of awesome advice! 유흥

    ReplyDelete
  34. These must be set to the metal once the firing process is complete to avoid any 먹튀검증. But even if you've a five year old or a five year old mentality

    ReplyDelete
  35. That is a very good tip especially to those new to the blogosphere.
    Short but very accurate info… Appreciate
    your sharing this one. A must read post해외선물갤러리

    ReplyDelete
  36. As I am looking at your writing, 온라인바둑이 I regret being unable to do outdoor activities due to Corona 19, and I miss my old daily life. If you also miss the daily life of those days, would you please visit my site once? My site is a site where I post about photos and daily life when I was free.

    ReplyDelete
  37. I saw your article well. You seem to enjoy 바카라사이트 for some reason. We can help you enjoy more fun. Welcome anytime :-)

    ReplyDelete
  38. Greetings! Very useful advice within this article! It is the little changes that will make the most important changes. Many thanks for sharing 메이저토토사이트 !

    ReplyDelete
  39. Simply unadulterated brilliance from you here. I have never expected something not as much as this from you and 먹튀검증 have not confounded me by any reach out of the inventive vitality. I acknowledge you will keep the quality work going on.

    ReplyDelete
  40. I am overwhelmed by your post with such a nice topic. Usually I visit your 메이저토토사이트 and get updated through the information you include but today’s blog would be the most appreciable. Well done!

    ReplyDelete
  41. I'm writing on this topic these days, , but I have stopped writing because there is no reference material. Then I accidentally found your article. I can refer to a variety of materials, so I think the work I was preparing will work! Thank you for your efforts. 토토사이트

    ReplyDelete
  42. I have been looking for articles on these topics for a long time. 먹튀검증 I don't know how grateful you are for posting on this topic. Thank you for the numerous articles on this site, I will subscribe to those links in my bookmarks and visit them often. Have a nice day

    ReplyDelete
  43. Hi there, I simply hopped over in your website by way of StumbleUpon. Now not one thing I’d typically learn, but I favored your emotions none the less. Thank you for making something worth reading. 사설토토사이트

    ReplyDelete
  44. That's a great article! The neatly organized content is good to see. Can I quote a blog and write it on my blog? My blog has a variety of communities including these articles. Would you like to visit me later? 우리카지노계열

    ReplyDelete
  45. I've been searching for hours on this topic and finally found your post. , I have read your post and I am very impressed. We prefer your opinion and will visit this site frequently to refer to your opinion. When would you like to visit my site? 토토사이트

    ReplyDelete
  46. I have been looking for articles on these topics for a long time. 먹튀검증 I don't know how grateful you are for posting on this topic. Thank you for the numerous articles on this site, I will subscribe to those links in my bookmarks and visit them often. Have a nice day.

    ReplyDelete
  47. I'm writing on this topic these days, , but I have stopped writing because there is no reference material. Then I accidentally found your article. I can refer to a variety of materials, so I think the work I was preparing will work! Thank you for your efforts. 토토커뮤니티

    ReplyDelete
  48. When I read an article on this topic, the first thought was profound and difficult, and I wondered if others could understand.. My site has a discussion board for articles and photos similar to this topic. Could you please visit me when you have time to discuss this topic? 토토커뮤니티

    ReplyDelete
  49. This is one very interesting post. I like the way you write and I will bookmark your blog to my favorites.메이저놀이터

    ReplyDelete
  50. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts.먹튀검증커뮤니티

    ReplyDelete
  51. Hello, I am one of the most impressed people in your article. 토토커뮤니티 I'm very curious about how you write such a good article. Are you an expert on this subject? I think so. Thank you again for allowing me to read these posts, and have a nice day today. Thank you.

    ReplyDelete
  52. Of course, your article is good enough, 온라인바둑이 but I thought it would be much better to see professional photos and videos together. There are articles and photos on these topics on my homepage, so please visit and share your opinions.

    ReplyDelete
  53. First of all, thank you for your post. 메이저사이트 Your posts are neatly organized with the information I want, so there are plenty of resources to reference. I bookmark this site and will find your posts frequently in the future. Thanks again ^^

    ReplyDelete
  54. I got a web site from where I be capable of really obtain valuable information regarding my study and knowledge.
    Great Article… Good Job… Thanks For Sharing…

    Website:오피사이트

    ReplyDelete
  55. There are several different ways in which people can make money online these days. 토토사이트

    ReplyDelete
  56. Your blog was incredible, I'm glad that i found. I love to read such an excellent article. Thanks! It has made my 토토사이트

    ReplyDelete
  57. Thanks so much for sharing all of the awesome info! I am looking forward to checking out more 토토사이트

    ReplyDelete
  58. It's cool every day that will help me grow 토토사이트

    ReplyDelete
  59. Keep working like that!. back scratcher shoe horn Thank you for sharing your thoughts. I really appreciate your 토토사이트

    ReplyDelete
  60. dependably manufacture astonishing entities 토토사이트 Keep working like that!. back scratcher shoe horn

    ReplyDelete
  61. I am the one who writes on a topic similar to yours. I hope you come to my blog and take a look at the posts I've been writing. 안전놀이터추천

    ReplyDelete
  62. I think this is among the most vital information for me.
    And i'm glad reading your article. But want to remark
    on some general things, The site style is great, the articles is really
    nice : D. Good job, cheers

    Stop by my blog post ... 출장안마

    ReplyDelete
  63. There must have been many difficulties in providing this information.Bóng 88 Nevertheless, thank you for providing such high-quality information.

    ReplyDelete
  64. A player is likely to get assistance in a day since a technical
    problem is reported. Software downloads don't cost anything, nevertheless
    they have certain hardware specifications.
    Finnish poker pro Jens Kyllonen can make history when he becomes one of the primary individuals 대구오피


    to attempt a passenger voyage to space in 2014.

    ReplyDelete
  65. I've been searching for hours on this topic and finally found your post. Tàixỉu, I have read your post and I am very impressed. We prefer your opinion and will visit this site frequently to refer to your opinion. When would you like to visit my site?

    ReplyDelete
  66. In the meantime, I wondered why I couldn't think of the answer to this simple problem like this. Your article is an article that gives the answer to all the content I've been contemplating. 메이저토토사이트

    ReplyDelete
  67. I am the one who writes on a topic similar to yours. I hope you come to my blog and take a look at the posts I've been writing. 안전놀이터추천

    ReplyDelete
  68. I’m thinking some of my readers might find a bit of this interesting. Do you mind if I post a clip from this and link back? Thanks 사설토토

    ReplyDelete
  69. Wow! Thank you! I continuously needed to write on my site something like that. Can I include a part of your post to my site?
    카지노사이트

    ReplyDelete
  70. Appreciation to my father who stated to me on the topic of this weblog, this webpage is really amazing.

    my homepage; 부산달리기

    ReplyDelete
  71. It's the same topic, but I was surprised that it was so different from my opinion. I hope you feel the same after seeing the writings I have written. 토토사이트

    ReplyDelete
  72. While looking for articles on these topics, I came across this article on the site here. As I read your article, I felt like an expert in this field. I have several articles on these topics posted on my site. Could you please visit my homepage? 메이저놀이터순위

    ReplyDelete
  73. Thanks to my father who shared with me regarding this web site, this weblog
    is actually amazing.
    Here is my web site 풀싸롱

    ReplyDelete
  74. I was looking for another article by chance and found your articlesex I am writing on this topic, so I think it will help a lot. I leave my blog address below. Please visit once.

    ReplyDelete
  75. Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject 안전한놀이터 It touched me a lot. I would love to hear your opinion on my site. Please come to the site I run once and leave a comment. Thank you.

    ReplyDelete

- Invoke-IR - By Jared Atkinson -