Add zsh install to script
This commit is contained in:
parent
ea555420f2
commit
f6378745a9
@ -26,7 +26,8 @@ main() {
|
|||||||
|
|
||||||
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
|
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
|
||||||
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
|
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
|
exit
|
||||||
fi
|
fi
|
||||||
unset CHECK_ZSH_INSTALLED
|
unset CHECK_ZSH_INSTALLED
|
||||||
@ -41,6 +42,9 @@ main() {
|
|||||||
exit
|
exit
|
||||||
fi
|
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
|
# Prevent the cloned repository from having insecure permissions. Failing to do
|
||||||
# so causes compinit() calls to fail with "command not found: compdef" errors
|
# so causes compinit() calls to fail with "command not found: compdef" errors
|
||||||
# for users with insecure umasks (e.g., "002", allowing group writability). Note
|
# for users with insecure umasks (e.g., "002", allowing group writability). Note
|
||||||
|
Loading…
Reference in New Issue
Block a user