I have installed Zsh via running:
sudo apt-get install zsh
Using the following guide for installing Zsh provided by oh-my-zsh I attempted to set it as my default shell, namely I ran:
chsh -s $(chsh -l | grep "zsh" -m 1)
which gave me the error:
chsh: invalid option -- 'l'
I ran:
sudo gedit /etc/shells
so I could check that zsh was listed there and it was. I also tried Florian's answer to a previous question, namely: chsh -s /bin/zsh
but echo $SHELL
still returned the same output: /bin/bash
. /bin/zsh
does exist on my system if you are wondering, as I tested this by running /bin/zsh
which started Zsh.
chsh
, enter your password and type the path ofzsh
(presumably/usr/bin/zsh
) – kos Jun 13 '15 at 06:07