From dc6fe2af29168a3d6650ad2196d742210c5d2fe0 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 9 Feb 2018 14:00:29 -0800 Subject: [PATCH] Update Raspbian installation instructions to create pwsh symlink (#6122) * Update Raspbian installation instructions to create pwsh symlink --- docs/installation/linux.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index 45e996a83f..d35eb3f9a1 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -630,6 +630,18 @@ tar -xvf ./powershell-6.0.1-linux-arm32.tar.gz -C ~/powershell ~/powershell/pwsh ``` +Optionally you can create a symbolic link to be able to start PowerShell without specifying path to the "pwsh" binary + +```sh +# Start PowerShell from bash with sudo to create a symbolic link +sudo ~/powershell/pwsh -c New-Item -ItemType SymbolicLink -Path "/usr/bin/pwsh" -Target "\$PSHOME/pwsh" -Force + +# alternatively you can run following to create a symbolic link +# sudo ln -s ~/powershell/pwsh /usr/bin/pwsh + +# Now to start PowerShell you can just run "pwsh" +``` + ### Uninstallation - Raspbian ```sh