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!


  1. Thanks for this information, very useful

  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!

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

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

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

  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

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

  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.먹튀검증

  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?

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

  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?


- Invoke-IR - By Jared Atkinson -