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!


56 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

- Invoke-IR - By Jared Atkinson -