From 29820cd6f0510b05b53c61ef8bd8d165e93c6773 Mon Sep 17 00:00:00 2001 From: Bryan Dady Date: Sat, 31 Mar 2018 23:29:23 -0600 Subject: [PATCH] Update MacOS instructions to use brew cask upgrade I just tested on my Macbook and confirmed that ```brew update brew cask upgrade ``` successfully updated my instance from PS Core 6.0.1 to 6.0.2 --- .../setup/Installing-PowerShell-Core-on-macOS-and-Linux.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/docs-conceptual/setup/Installing-PowerShell-Core-on-macOS-and-Linux.md b/reference/docs-conceptual/setup/Installing-PowerShell-Core-on-macOS-and-Linux.md index 228ef0ae05dd..d5ea22eda37a 100644 --- a/reference/docs-conceptual/setup/Installing-PowerShell-Core-on-macOS-and-Linux.md +++ b/reference/docs-conceptual/setup/Installing-PowerShell-Core-on-macOS-and-Linux.md @@ -606,10 +606,10 @@ When new versions of PowerShell are released, simply update Homebrew's formulae ```sh brew update -brew cask reinstall powershell +brew cask upgrade powershell ``` -> Note: because of [this issue in Cask](https://github.com/caskroom/homebrew-cask/issues/29301), you currently have to do a reinstall to upgrade. +> Note: The commands above can be called from within a PowerShell (pwsh) host, but then the PowerShell shell must be exited and re-entered to complete the upgrade and refresh the values shown in $PSVersionTable. [brew]: http://brew.sh/ [cask]: https://caskroom.github.io/ @@ -804,4 +804,4 @@ On Linux and macOS, the [XDG Base Directory Specification][xdg-bds] is respected Note that because macOS is a derivation of BSD, instead of `/opt`, the prefix used is `/usr/local`. Thus, `$PSHOME` is `/usr/local/microsoft/powershell/6.0.0/`, and the symlink is placed at `/usr/local/bin/pwsh`. [releases]: https://github.com/PowerShell/PowerShell/releases/latest -[xdg-bds]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html \ No newline at end of file +[xdg-bds]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html