diff options
-rwxr-xr-x | hooks/installed..vim.hook | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/hooks/installed..vim.hook b/hooks/installed..vim.hook new file mode 100755 index 0000000..243eac1 --- /dev/null +++ b/hooks/installed..vim.hook @@ -0,0 +1,22 @@ +#!/bin/bash + +cd "$1" || exit 1 +mkdir -p bundle-active/ || exit 1 +cd bundle-active/ || exit 1 + +DEFS=( + 'vim-pathogen' + 'vim-airline' + 'vim-airline-themes' + 'vim-fugitive' + 'rainbow' +) + +pwd + +echo Activating default vim plugins: "${DEFS[@]}" + +for f in "${DEFS[@]}"; do + [ -L "$f" ] && continue + ln -s "../bundle/$f" "$f" +done |