X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/144c58dcc814bf42c90c886485eaca3228243375..a3843b8a1f6040e389aecf073a44444afaa83ab7:/setup/powershell.sh 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