diff --git a/install.sh b/install.sh index b73fa99..93009ab 100755 --- a/install.sh +++ b/install.sh @@ -19,12 +19,14 @@ fi echo -e "Installing oh-my-zsh\n" if [ -d ~/.config/ezsh/oh-my-zsh ]; then echo -e "oh-my-zsh is already installed\n" + git -C ~/.config/ezsh/oh-my-zsh remote set-url origin https://github.com/ohmyzsh/ohmyzsh.git elif [ -d ~/.oh-my-zsh ]; then - echo -e "oh-my-zsh in already installed at '~/.oh-my-zsh'. Moving it to '~/.config/ezsh/oh-my-zsh'" - export ZSH="$HOME/.config/ezsh/oh-my-zsh" - mv ~/.oh-my-zsh ~/.config/ezsh/oh-my-zsh + echo -e "oh-my-zsh in already installed at '~/.oh-my-zsh'. Moving it to '~/.config/ezsh/oh-my-zsh'" + export ZSH="$HOME/.config/ezsh/oh-my-zsh" + mv ~/.oh-my-zsh ~/.config/ezsh/oh-my-zsh + git -C ~/.config/ezsh/oh-my-zsh remote set-url origin https://github.com/ohmyzsh/ohmyzsh.git else - git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git ~/.config/ezsh/oh-my-zsh + git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.config/ezsh/oh-my-zsh fi