diff --git a/install.sh b/install.sh index 229852d..0508956 100755 --- a/install.sh +++ b/install.sh @@ -245,12 +245,11 @@ else # source ~/.zshrc echo -e "\nSudo access is needed to change default shell\n" - if chsh -s $(which zsh) && /bin/zsh -i -c 'omz update'; then + if sudo chsh -s $(which zsh) $USER && /bin/zsh -i -c 'omz update'; then echo -e "Installation complete, exit terminal and enter a new zsh session" echo -e "In a new zsh session manually run: build-fzf-tab-module" else - echo -e "Something is wrong" - + echo -e "Something went wrong" fi fi exit \ No newline at end of file