]> apps.delaporte.us Git - dotfiles.git/blobdiff - setup/powershell.sh
EDITOR! AAARGH!
[dotfiles.git] / setup / powershell.sh
index 6b873245d460d87173723acf7b9517433c432f5e..e69da042dae3bb2287f9124af9392eb3ee520ee8 100755 (executable)
@@ -1,8 +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
 chsh --shell /usr/bin/pwsh