fix: nvm/node init

This commit is contained in:
Andrejus
2021-06-27 22:50:46 +01:00
parent febaad9e90
commit 9cea0005ee
2 changed files with 25 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ fish --version
current_shell=`grep "^$USER" /etc/passwd`
current_shell=${current_shell##*:}
fish_shell=`which fish`
fish_shell=`command -v fish`
if [[ "$current_shell" != "$fish_shell" ]]; then
sudo usermod --shell "$fish_shell" "$USER"
fi