PowerShell coding on a Mac

Screenshot 2014-06-10 13.30.13 Because my main workstation is a MacBook pro, I use a Windows 8.1 virtual machine for most of my PowerShell coding work or I connect via RDP to my management server. But sometimes I want to quickly edit a script to send it to a coworker or friend. It is possible to edit a PowerShell script in any text editor that is available. But for PowerShell coding it handy if your editor is PowerShell language aware.

So, while looking for PowerShell ISE for MacOSX I came across Sublime. First you need to install Sublime on your Mac. To enable the PowerShell highlighting you need to download this zip file.

The content of this zip file needs to be placed in the following location:
Users\Username\Library\Application Support\Sublime Text 3\Packages

Screenshot 2014-06-10 14.03.49

When you close Sublime and open it again the PowerShell syntax is available. When you Screenshot 2014-06-10 14.24.57 click on the right side bottom of the Sublime window you can select PowerShell from the list.

When you open a PowerShell script, you see that Sublime is now PowerShell aware.

Screenshot 2014-06-10 14.32.24

keep-calm-and-happy-coding

Was once an enthusiastic PepperByte employee but is now working at Ivanti. His blogs are still valuable to us and we hope to you too.