From f6378745a9070c84b6226e518bca291283f078c5 Mon Sep 17 00:00:00 2001 From: Adphi Date: Thu, 19 Apr 2018 17:03:50 +0200 Subject: [PATCH] Add zsh install to script --- tools/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 840a0d7d..b1c63ef6 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -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