]> us-delaporte.pagekite.me Git - dotfiles.git/blob - setup/powershell.sh
Add ability to exclude milestones to allow focus on bigger ones
[dotfiles.git] / setup / powershell.sh
1
2 echo "************** Link PowerShell profile"
3 mkdir -p ~/.config/powershell/
4 mv ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/profile.backup.ps1
5 ln -s ~/dotfiles/files/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1
6
7 echo "************** Install PowerShell"
8 sudo snap install powershell --classic
9
10 if ! [ -f /etc/shells ] || ! grep -q '^/snap/bin/powershell$' /etc/shells; then
11 echo "************** Add PowerShell to /etc/shells"
12 echo '/snap/bin/powershell' | sudo tee -a /etc/shells
13 fi
14
15 echo "************** Choose Shell: PowerShell"
16 chsh --shell /snap/bin/powershell