From 3ec169311767ca644b8e1a9bd7a6f9d09919c8d5 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 11 Aug 2010 11:44:38 -0700 Subject: [PATCH] change shell to zsh if necessary --- newbox | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/newbox b/newbox index 541d0c4..e0ec8ff 100755 --- a/newbox +++ b/newbox @@ -15,9 +15,13 @@ if ! which zsh >/dev/null 2>&1; then exit 1 fi fi -# -# FIXME figure out how to change the shell semi-interactively (only type in password) -#chsh `which zsh` + +if ! grep `id -u` /etc/passwd | grep zsh; then + # FIXME figure out how to change the shell semi-interactively (only type in password) + #chsh `which zsh` + echo "Please chonge your shell to `which zsh`" + chsh +fi if ! which git >/dev/null 2>&1; then if which aptitude >/dev/null 2>&1; then