Proper fix for oh-my-zsh update, #20 #21

This commit is contained in:
JGill
2022-04-24 15:03:48 +05:30
parent b232e2077b
commit 31700e30ab

View File

@@ -19,12 +19,14 @@ fi
echo -e "Installing oh-my-zsh\n" echo -e "Installing oh-my-zsh\n"
if [ -d ~/.config/ezsh/oh-my-zsh ]; then if [ -d ~/.config/ezsh/oh-my-zsh ]; then
echo -e "oh-my-zsh is already installed\n" 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 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'" 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" export ZSH="$HOME/.config/ezsh/oh-my-zsh"
mv ~/.oh-my-zsh ~/.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 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 fi