From c092a6bf295d2d65812361462f7da4ba0545f5a8 Mon Sep 17 00:00:00 2001 From: ramamajhi14 Date: Sun, 9 Dec 2018 11:33:00 +0530 Subject: [PATCH] update --- t-header.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/t-header.sh b/t-header.sh index d4b719b..a78822e 100644 --- a/t-header.sh +++ b/t-header.sh @@ -180,13 +180,13 @@ done echo -e "\e[1;34m[*] \e[32mZsh-autosuggestion plugins setup..\e[0m"; zshau=0 - -cd $HOME/.oh-my-zsh/custom/plugins/ +mkdir -p $HOME/.plugins/ +cd $HOME/.plugins/ while [ $zshau = 0 ]; do - ( git clone https://github.com/zsh-users/zsh-autosuggestions.git; echo "source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" >> $HOME/.zshrc; ) &> /dev/null & spin - if [ -d $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions ]; + ( git clone https://github.com/zsh-users/zsh-autosuggestions.git; echo "source ~/.plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" >> $HOME/.zshrc; ) &> /dev/null & spin + if [ -d $HOME/.plugins/zsh-autosuggestions ]; then zshau=1 else @@ -197,14 +197,14 @@ fi done zshsyx=0 -cd $HOME/.oh-my-zsh/custom/plugins/ +cd $HOME/.plugins/ while [ $zshsyx = 0 ]; do echo -e "\e[1;34m[*] \e[32mZsh-syntax-highlighter setup....\e[0m"; - ( git clone https://github.com/zsh-users/zsh-syntax-highlighting.git; echo "source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> $HOME/.zshrc; ) &> /dev/null & spin + ( git clone https://github.com/zsh-users/zsh-syntax-highlighting.git; echo "source ~/.plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> $HOME/.zshrc; ) &> /dev/null & spin -if [ -d $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting ]; +if [ -d $HOME/.plugins/zsh-syntax-highlighting ]; then zshsyx=1 else