Quantcast
Channel: Windows PowerShell - SAPIEN Blog
Viewing all articles
Browse latest Browse all 308

Setting up PowerShell on your Mac (Update!)

$
0
0

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

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:
    Figure 2 - 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
    Figure 3 - 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
    Figure 3 - Tab preferences

    Figure 3 – Tab preferences

    1. check the options you want to see when you have PowerShell tabs
  11. Click the Shell tab
    Figure 4 - Shell preferences

    Figure 4 – 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:

Figure 5 - New window with profile

Figure 5 – New window with profile

or set PowerShell as your default profile.

Figure 6 - Set default profile

Figure 6 – 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 7 - Create a .terminal file

Figure 7 – Create a .terminal file

 

Figure 8 - PowerShell on the Dock

Figure 8 – PowerShell on the Dock

 

 
[Google+]   [Facebook]   [LinkedIn]   [StumbleUpon]   [Digg]   [Reddit]   [Google Bookmark]  


Viewing all articles
Browse latest Browse all 308

Trending Articles