installation has been finished

This commit is contained in:
Sameer Rahmani 2018-05-24 16:40:25 +01:00
parent a57f1e0b97
commit 1d4b7266d0
1 changed files with 5 additions and 2 deletions

View File

@ -68,16 +68,19 @@ main() {
pwd=`pwd`
cd $ZSH
$(env git submodule init) || {
env git submodule init || {
printf "Error: git submodule of My.Zsh repo failed\n"
exit 1
}
env git submodule update
cd $pwd
printf "${BLUE}Looking for an existing zsh config...${NORMAL}\n"
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
printf "${YELLOW}Found ~/.zshrc.${NORMAL} ${GREEN}Backing up to ~/.zshrc.backup ${NORMAL}\n";
mv ~/.zshrc ~/.zshrc.override;
mv ~/.zshrc ~/.zshrc.backup;
fi
printf "${BLUE}Using the My.Zsh template file and adding it to ~/.zshrc${NORMAL}\n"