Add zsh install to script

This commit is contained in:
Adphi 2018-04-19 17:03:50 +02:00
parent ea555420f2
commit f6378745a9
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,8 @@ main() {
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
printf "${YELLOW}Zsh is not installed!${NORMAL} Installing zsh\n"
apt-get install zsh
exit
fi
unset CHECK_ZSH_INSTALLED
@ -41,6 +42,9 @@ main() {
exit
fi
printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n"
apt-get install -y fonts-powerline
# Prevent the cloned repository from having insecure permissions. Failing to do
# so causes compinit() calls to fail with "command not found: compdef" errors
# for users with insecure umasks (e.g., "002", allowing group writability). Note