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.
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:
- 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
- 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
- check the options you want to see when you have PowerShell tabs
- Click the Shell tab
- 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:
or set PowerShell as your 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!
Follow @SAPIENTech
![[Google+]](http://i0.wp.com/www.sapien.com/blog/wp-content/uploads/GooglePlus.gif?resize=16%2C16&ssl=1)