1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 20:40:32 +01:00

Don't force oh-my-zsh if it exists.

This commit is contained in:
Bert Peters
2015-03-30 13:47:10 +02:00
parent abc5b1305f
commit 9cfe0fdf44

View File

@@ -41,14 +41,18 @@ echo "Installing vim."
confirmAndLink $DIR/vim/vimrc $HOME/.vimrc
confirmAndLink $DIR/vim $HOME/.vim
echo "Installing zsh"
if [ ! -e $HOME/.oh-my-zsh ]
which zsh
if which zsh
then
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
rm $HOME/.zshrc
else
confirmAndLink $DIR/zshrc $HOME/.zshrc
fi
echo "Installing zsh"
echo "Installation finished."
if [ ! -e $HOME/.oh-my-zsh ]
then
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
rm $HOME/.zshrc
else
confirmAndLink $DIR/zshrc $HOME/.zshrc
fi
echo "Installation finished."
fi