Skip to content

Commit

Permalink
Proper fix for oh-my-zsh update, #20 #21
Browse files Browse the repository at this point in the history
  • Loading branch information
jotyGill committed Apr 24, 2022
1 parent b232e20 commit 31700e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 31700e3

Please sign in to comment.