rtomayko / git-sh

A customized bash environment suitable for git work.
GNU General Public License v2.0
735 stars 83 forks source link

chsh does not work #10

Closed hujuice closed 11 years ago

hujuice commented 13 years ago

I really would like to chsh to git-sh on some development hosts. But the command fails.

$ chsh Cambio della shell di login di sergio Inserire il nuovo valore o premere INVIO per quello predefinito Shell di login [/bin/bash]: /usr/bin/git-sh chsh: /usr/bin/git-sh is an invalid shell. (The dialog is in italian, sorry, but the error message is in english)

Why git-sh is invalid? Gentoo Linux.

Regards, Sergio

badboy commented 13 years ago

As said in the man page for chsh:

The only restriction placed on the login shell is that the command name 
must be listed in /etc/shells, unless the invoker is the superuser, and then
any value may be added.