Setting up PowerShell on your Mac
- Details
- Written by Ferdinand Rios
- Last Updated: 06 September 2016
- Created: 19 August 2016
- Hits: 24315
Now that PowerShell is available on the Mac, we thought it would be useful to show how easy it is to setup a Mac terminal session that automatically opens into PowerShell. Figure 1 shows what we mean.
Figure 1 – PowerShell Terminal Session
First you need to download the PowerShell macOS package from here (look for the Get PowerShell section in the README.md) and install it using the directions found here . Once PowerShell is installed and running on your system, follow the instructions below to set up your PowerShell terminal
Here are the steps to follow:
- Open Terminal on the Mac in whatever fashion you usually use
- In the Terminal menu, select Preferences…
- Select Profiles in the Preferences window toolbar
- Select a Profile in the left list
- Select the Gear icon at the bottom of the list
- Select Duplicate Profile from the drop down
- Rename the new profile to PowerShell
- In the Text tab on the right do the following:
Figure 2 – Text Preferences
- Click on Color & Effects and select a Dark Blue color from the color wheel
- Change the font to Menlo Regular 24 (or whatever works for you)
- Check all the attributes in the Text section
- Click on _Underline in the cursor section
- Click the Window Tab
Figure 3 – Window preferences
- Set the title to whatever you want. We like Windows PowerShell
- Check or uncheck the other items you want or don’t want to see in the title bar
- Select the Tab tab
Figure 4 – Tab preferences
- check the options you want to see when you have PowerShell tabs
- check the options you want to see when you have PowerShell tabs
- Click the Shell tab
Figure 5 – Shell preferences
- Check Run Command and type in powershell (lowercase)
- Click on Run inside shell
- Click Never in the Ask before closing section
You now have a PowerShell profile. To open a terminal window right to PowerShell, select the Shell Menu from the Terminal menu bar. Then select New Window / PowerShell. Viola! Up comes your PowerShell terminal window.
If you ONLY want to use PowerShell as your terminal window, you can set your startup preference to your PowerShell profile:
Figure 6 – New window with profile
or set PowerShell as your default profile.
Figure 7 – Set default profile
There you have it! Happy PowerShelling on your Mac!
UPDATE:
Want PowerShell on your dock for immediate access? In the Terminal Preferences pane, select the PowerShell profile you created. At the bottom of the list click on the gear icon and select Export. This will create a .terminal file. Dragged the terminal file to the right side of your dock (right of the dividing line where your folders and documents live). You now have a Dock icon that immediately starts a PowerShell Terminal!
Figure 8 – Create a .terminal file
Figure 9 – PowerShell on the Dock
For licensed customers, use the forum associated with your product in our Product Support Forums for Registered Customers.
For users of trial versions, please post in our Former and Future Customers - Questions forum.