1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-27 21:40:31 +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/vimrc $HOME/.vimrc
confirmAndLink $DIR/vim $HOME/.vim confirmAndLink $DIR/vim $HOME/.vim
echo "Installing zsh" which zsh
if which zsh
if [ ! -e $HOME/.oh-my-zsh ]
then then
echo "Installing zsh"
if [ ! -e $HOME/.oh-my-zsh ]
then
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
rm $HOME/.zshrc rm $HOME/.zshrc
else else
confirmAndLink $DIR/zshrc $HOME/.zshrc confirmAndLink $DIR/zshrc $HOME/.zshrc
fi fi
echo "Installation finished." echo "Installation finished."
fi