From 7c8b4ccf85ccddd7a3607815661cd2d36dead642 Mon Sep 17 00:00:00 2001 From: Andrew Menagarishvili Date: Tue, 6 Feb 2018 14:19:04 -0800 Subject: [PATCH 1/3] Update Raspbian installation instructions to create pwsh symlink --- docs/installation/linux.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index 45e996a83fe..5c3d923b96a 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -630,6 +630,15 @@ 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 with sudo to create a symbolic link +sudo ~/powershell/pwsh +New-Item -ItemType SymbolicLink -Path "/usr/bin/pwsh" -Target "$PSHOME/pwsh" -Force +# Now to start PowerShell you can just run "pwsh" +``` + ### Uninstallation - Raspbian ```sh From 8239f95ab0140bbe762e65622b486bce9bc5054d Mon Sep 17 00:00:00 2001 From: Andrew Menagarishvili Date: Wed, 7 Feb 2018 14:48:27 -0800 Subject: [PATCH 2/3] PR feedback --- docs/installation/linux.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index 5c3d923b96a..9ef2066df7b 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -634,8 +634,11 @@ Optionally you can create a symbolic link to be able to start PowerShell without ```sh # Start PowerShell with sudo to create a symbolic link -sudo ~/powershell/pwsh -New-Item -ItemType SymbolicLink -Path "/usr/bin/pwsh" -Target "$PSHOME/pwsh" -Force +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" ``` From d5a5e6ef34c860ea94f00a15d719210089fd201e Mon Sep 17 00:00:00 2001 From: Andrew Menagarishvili Date: Thu, 8 Feb 2018 11:10:24 -0800 Subject: [PATCH 3/3] PR feedback 2 --- docs/installation/linux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index 9ef2066df7b..d35eb3f9a1e 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -633,7 +633,7 @@ tar -xvf ./powershell-6.0.1-linux-arm32.tar.gz -C ~/powershell Optionally you can create a symbolic link to be able to start PowerShell without specifying path to the "pwsh" binary ```sh -# Start PowerShell with sudo to create a symbolic link +# 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