From: Edward Delaporte Date: Sat, 13 Mar 2021 22:48:19 +0000 (-0600) Subject: More fixes for PowerShell install. X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/986fe8126270d6d8e4604c23d5f8fdcd2cbd29ce?ds=inline More fixes for PowerShell install. --- diff --git a/install/powershell7_pi.sh b/install/powershell7_pi.sh index bd10bf4..a16016a 100755 --- a/install/powershell7_pi.sh +++ b/install/powershell7_pi.sh @@ -29,3 +29,6 @@ tar -xvf /tmp/powershell.tar.gz -C /opt/powershell/ # Link the shell to the usual place to find it. ln -s /opt/powershell/pwsh /usr/bin/pwsh +echo "/usr/bin/pwsh" >> /etc/shells + +echo "PowerShell should now be installed. See ./setup/powershell.sh for how to chagne shells." diff --git a/setup.sh b/setup.sh index 7893144..ff7b64c 100755 --- a/setup.sh +++ b/setup.sh @@ -13,13 +13,6 @@ if [ ! -f ~/.screenrc ]; then ln -s ~/dotfiles/screenrc ~/.screenrc fi -if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then - echo "************** Setup PowerShell" - chsh --shell /usr/bin/pwsh - mkdir -p ~/.config/powershell/ - ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1 -fi - if [ ! -f ~/.vimrc ]; then echo "************** Link Vimrc" ln -s ~/dotfiles/vimrc ~/.vimrc diff --git a/setup/powershell.sh b/setup/powershell.sh index a1c23e3..6b87324 100755 --- a/setup/powershell.sh +++ b/setup/powershell.sh @@ -4,3 +4,5 @@ if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then mkdir -p ~/.config/powershell/ ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1 fi + +chsh --shell /usr/bin/pwsh