Install the newest version of zsh shell in Linux

Due to the version of zsh in the Ubuntu 12.04’s apt repository is too old to correctly source Zephyr’s environment variables. I decided to install the newest zsh from source manually. After compiling and installation, when I changed my default login shell to my new zsh, however, some strange things happened.

The system told me that you may not change the shell for xxx where xxx is my username. I was astonished by this message! This is my computer, why you can prevent me from changing my login shell? Well, you are my boss, I surrender….

After a lot of googling, finally, I got this. Briefly, it is due to that my new zsh is not included in the /etc/shells file. After appending my new zsh in this file, problems are gone.

Thank you for your visiting….


¶ The end

Share Link: http://d0u9.win/posts/3669365634.html