diff --git a/tools/install.sh b/tools/install.sh index c83a6f23d..9be3d589e 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -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"