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:
16
install.sh
16
install.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user