adding optionnal zsh install for debian

This commit is contained in:
Guillaume Aversa 2015-08-03 09:55:56 +02:00
commit 3cd4e0809a

View file

@ -32,6 +32,12 @@ sed -i -e "/export PATH=/ c\\
export PATH=\"$PATH\"
" ~/.zshrc
TEST_ZSH_INSTALLED=$(dpkg -l | grep -w 'zsh' | grep -v 'zsh-' | grep 'ii')
if [ "$TEST_ZSH_INSTALLED" = "" ]; then
echo "\033[0;34mInstalling zsh shell\033[0m"
sudo apt-get install -y zsh
fi
TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"