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
7 echo "************** Install PowerShell"
8 sudo snap
install powershell
--classic
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
15 echo "************** Choose Shell: PowerShell"
16 chsh
--shell /snap
/bin
/powershell