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