# 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."
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
mkdir -p ~/.config/powershell/
ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1
fi
+
+chsh --shell /usr/bin/pwsh