change shell to zsh if necessary

This commit is contained in:
Sami Samhuri 2010-08-11 11:44:38 -07:00
parent 74d4cc70ee
commit 3ec1693117

6
newbox
View file

@ -15,9 +15,13 @@ if ! which zsh >/dev/null 2>&1; then
exit 1 exit 1
fi fi
fi fi
#
if ! grep `id -u` /etc/passwd | grep zsh; then
# FIXME figure out how to change the shell semi-interactively (only type in password) # FIXME figure out how to change the shell semi-interactively (only type in password)
#chsh `which zsh` #chsh `which zsh`
echo "Please chonge your shell to `which zsh`"
chsh
fi
if ! which git >/dev/null 2>&1; then if ! which git >/dev/null 2>&1; then
if which aptitude >/dev/null 2>&1; then if which aptitude >/dev/null 2>&1; then