X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/144c58dcc814bf42c90c886485eaca3228243375..9a91c5dc92073c2c744e10aa0bc6c8dfd913bb6d:/setup/powershell.sh?ds=inline diff --git a/setup/powershell.sh b/setup/powershell.sh index a1c23e3..e69da04 100755 --- a/setup/powershell.sh +++ b/setup/powershell.sh @@ -1,6 +1,8 @@ -if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then - echo "************** Link PowerShell profile" - chsh --shell /usr/bin/pwsh - mkdir -p ~/.config/powershell/ - ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1 -fi + +echo "************** Link PowerShell profile" +mkdir -p ~/.config/powershell/ +mv ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/profile.backup.ps1 +ln -s ~/dotfiles/files/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1 + +echo "************** Choose Shell: PowerShell" +chsh --shell /usr/bin/pwsh