Skip to content

Commit

Permalink
add instructions to install preview for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisEz13 authored and joeyaiello committed Sep 13, 2018
1 parent a049685 commit a796ea9
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,48 @@ brew cask upgrade powershell-preview
[cask]: https://caskroom.github.io/
[cask-versions]: https://github.com/Homebrew/homebrew-cask-versions

### Installation of latest preview release via Homebrew on macOS 10.12 or newer

[Homebrew][brew] is the preferred package manager for macOS.
If the `brew` command is not found, you need to install Homebrew following [their instructions][brew].

Once you've installed Homebrew, installing PowerShell is easy.
First, install [Homebrew-Cask][cask], so you can install more packages and install [Cask-Versions][cask-version] which lets you install alternative versions of packages:

```sh
brew tap caskroom/cask
brew tap caskroom/versions
```

Now, you can install PowerShell:

```sh
brew cask install powershell-preview
```

Finally, verify that your install is working properly:

```sh
pwsh-preview
```

When new versions of PowerShell are released,
simply update Homebrew's formulae and upgrade PowerShell:

```sh
brew update
brew cask upgrade powershell-preview
```

> [!NOTE]
> The commands above can be called from within a PowerShell (pwsh) host,
> but then the PowerShell shell must be exited and restarted to complete the upgrade.
> and refresh the values shown in $PSVersionTable.
[brew]: http://brew.sh/
[cask]: https://caskroom.github.io/
[cask-versions]: https://github.com/Homebrew/homebrew-cask-versions

### Installation via Direct Download

Download the PKG package
Expand Down

0 comments on commit a796ea9

Please sign in to comment.