mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 12:30:32 +01:00
Don't force oh-my-zsh if it exists.
This commit is contained in:
22
install.sh
22
install.sh
@@ -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
|
||||
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
|
||||
rm $HOME/.zshrc
|
||||
else
|
||||
confirmAndLink $DIR/zshrc $HOME/.zshrc
|
||||
fi
|
||||
|
||||
echo "Installation finished."
|
||||
fi
|
||||
|
||||
echo "Installation finished."
|
||||
|
||||
Reference in New Issue
Block a user