How do I change my shell to one installed in my home directory? I installed a new zsh in my home directory, which is picked up:

>> which zsh
>> /home/myname/bin/zsh

It's not listed in /etc/shells (and won't be, as I lack permission), so how do I install it?

chsh -s $(which zsh) myname
Changing shell for myname
Password: 
chsh: "/home/myname/bin/zsh" is not listed in /etc/shells
chsh: use -l option to see list
link|improve this question

Perhaps you could exec zsh in your bashrc ? – cnicutar Feb 7 at 21:50
@cnicutar That works, thanks, but seems a bit of a hack. Is the reason I can't do it properly because sysadmins don't want users to screw up their shells? – ash Feb 7 at 21:53
I don't know the reasoning behind /etc/shells, do tell if you find out. – cnicutar Feb 7 at 21:55
Ok, thanks. Can you make it an answer? I will accept it. – ash Feb 7 at 21:59
I think this question will end up in superuser in a few hours. Glad it worked for you :-) – cnicutar Feb 7 at 22:01
feedback

migrated from stackoverflow.com Feb 8 at 2:06

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.