change shell to zsh if necessary
This commit is contained in:
parent
74d4cc70ee
commit
3ec1693117
1 changed files with 7 additions and 3 deletions
6
newbox
6
newbox
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue