From b49146e4070cb816dcfa8cabbbfddfce649030db Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 17 Apr 2016 21:45:52 +0200 Subject: [PATCH] Install vim plugins --- unixconf.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/unixconf.sh b/unixconf.sh index 2afb844..2e07dbd 100755 --- a/unixconf.sh +++ b/unixconf.sh @@ -12,13 +12,10 @@ for musthave in $musthaves; do fi done -# Vim setup -if (! test -d "$HOME/.vim" ); then - mkdir "$HOME/.vim" -fi - # ZSH setup -sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" +SHELL=zsh sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" +echo "Setting ZSH as default." +echo "exec zsh" >> "$HOME/.bashrc" # Copy configurations tempdir="temp_$(date -I)" @@ -35,5 +32,8 @@ rootdir="$(ls)" cd "$rootdir/configurations" || exit cp .* "$HOME/" -echo "Setting ZSH as default (/bin/zsh)." -echo "exec zsh" >> "$HOME/.bashrc" +# Vim setup +if (! test -d "$HOME/.vim" ); then + mkdir "$HOME/.vim" +fi +vim +PluginInstall +qall