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

Merge zsh changes.

This commit is contained in:
Bert Peters
2015-12-14 10:26:10 +01:00
parent f6d910386b
commit bc9fbf368e
2 changed files with 68 additions and 31 deletions

View File

@@ -6,7 +6,7 @@ confirm () {
# call with a prompt string or use a default
read -r -p "${1:-Are you sure? [y/N]} " response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY])
true
;;
*)
@@ -41,18 +41,14 @@ echo "Installing vim."
confirmAndLink $DIR/vim/vimrc $HOME/.vimrc
confirmAndLink $DIR/vim $HOME/.vim
which zsh
# Install zsh, if relevant.
if which zsh
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
rm $HOME/.zshrc
else
confirmAndLink $DIR/zshrc $HOME/.zshrc
fi
echo "Installation finished."
confirmAndLink $DIR/zshrc $HOME/.zshrc
fi
echo "Installation finished."