]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - setup/powershell.sh
Add symlink reminder
[dotfiles.git] / setup / powershell.sh
index a1c23e37bae5babbed1af28d60fa5f92f2facb03..e69da042dae3bb2287f9124af9392eb3ee520ee8 100755 (executable)
@@ -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