Mac OS X…
Powershell has been released on GitHub.
Welcome to the PowerShell GitHub Community! PowerShell is a cross-platform (Windows, Linux, and OS X) automation and configuration tool/framework that works well with your existing tools and is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and object models. It includes a command-line shell, an associated scripting language and a framework for processing cmdlets.
PowerShell becomes multiplatform
Additional platforms will be supported in the future, says Microsoft. The firm book parallel the source code for Windows PowerShell and Linux. PowerShell is based on .Net, Microsoft .Net needed on other platforms in order to bear PowerShell also on other platforms, says the creator of the tool, Jeffrey Snover.
Once operational Core .NET on Linux and Mac OS X – via .NET 1.0 Core – the publisher has changed for PowerShell that it works. The PowerShell Core version is the one that Microsoft will deliver with Nano Server for Windows Server 2016, says Jeffrey Snover to ZDNet.com. „The current PowerShell users who need to manage their heterogeneous areas will want it. People building management tools like us with Operations Management Suite (OMS) desire. Those who want to standardize on a specific set of tools will want this” ensures the father of PowerShell.
Install PowerShell on OS X 10.11
Using OS X 10.11, download the PKG package powershell-6.0.0-alpha.9.pkg from the releases page onto the OS X machine. Either double-click the file and follow the prompts, or install it from the terminal:
sudo installer -pkg powershell-6.0.0-alpha.9.pkg -target /
$PSHOME is /opt/microsoft/powershell/6.0.0-alpha.9/ User profiles will be read from ~/.config/powershell/profile.ps1 Default profiles will be read from $PSHOME/profile.ps1 User modules will be read from ~/.local/share/powershell/Modules Shared modules will be read from /usr/local/share/powershell/Modules Default modules will be read from $PSHOME/Modules PSReadLine history will be recorded to ~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
The profiles respect PowerShell’s per-host configuration, so the default host-specific profiles exists at Microsoft.PowerShell_profile.ps1 in the same locations. On Linux and OS X, the XDG Base Directory Specification is respected. Note that because OS X is a derivation of BSD, instead of /opt, the prefix used is /usr/local. Thus, $PSHOME is /usr/local/microsoft/powershell/6.0.0-alpha.9/, and the symlink is placed at /usr/local/bin/powershell.