Ubuntu – Cannot execute shell /bin/zsh when execute a shell command in vi bashcommand linevizsh I use bash. But it cannot find zsh. How to change this? ps:I don't want to install zsh. Best Answer set default shell in vim :set shell=/bin/bash Thanks to Ubuntu Forum Related SolutionsDefault Shell – How to Make ZSH the Default Shell Just using chsh: chsh -s $(which zsh) without sudo should work. If you use sudo it will change the shell not for your working user but for root Finally, log out of your computer and log back in. Troubleshooting: Do you have zsh installed (ii)? dpkg -l zsh Is your shell set to zsh? Last field of grep $USER /etc/passwd Is Zsh a valid login shell? grep zsh /etc/shells chsh -s /usr/bin/zsh Not Working – Command-Line Shell Issue You need to log out again for these changes to take effect. The shell defined in the /etc/passwd file is your login shell :-) So you need to log in actually for that. Related QuestionDefault Shell – How to Make ZSH the Default Shellchsh -s /usr/bin/zsh Not Working – Command-Line Shell IssueUbuntu – When $SHELL variable does not change when I switch shellCommand-Line – Possible Side Effects of Changing Shell from zsh to bash
Best Answer
set default shell in vim
Thanks to Ubuntu Forum