@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user