User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

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.

PowerShell Terminal Session

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:

  1. Open Terminal on the Mac in whatever fashion you usually use
  2. In the Terminal menu, select Preferences…
  3. Select Profiles in the Preferences window toolbar
  4. Select a Profile in the left list
  5. Select the Gear icon at the bottom of the list
  6. Select Duplicate Profile from the drop down
  7. Rename the new profile to PowerShell
  8. In the Text tab on the right do the following:
    Text preferences
    Figure 2 – Text Preferences
    1. Click on Color & Effects and select a Dark Blue color from the color wheel
    2. Change the font to Menlo Regular 24 (or whatever works for you)
    3. Check all the attributes in the Text section
    4. Click on _Underline in the cursor section

  9. Click the Window Tab
    Window preferences
    Figure 3 – Window preferences
    1. Set the title to whatever you want. We like Windows PowerShell
    2. Check or uncheck the other items you want or don’t want to see in the title bar

  10. Select the Tab tab
    Tab preferences
    Figure 4 – Tab preferences
    1. check the options you want to see when you have PowerShell tabs

  11. Click the Shell tab
    Shell preferences
    Figure 5 – Shell preferences
    1. Check Run Command and type in powershell (lowercase)
    2. Click on Run inside shell
    3. 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:

New window with profile

Figure 6 – New window with profile

or set PowerShell as your default profile.

Set 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!

Create a .terminal file

Figure 8 – Create a .terminal file

 

PowerShell on the dock

Figure 9 – PowerShell on the Dock
If you have questions about our products, please post in our support forum.
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.
Copyright © 2024 SAPIEN Technologies, Inc.