aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-05-26 23:05:36 -0400
committerBenjamin Linskey2026-05-26 23:05:36 -0400
commit698eee0330b6e8c41abbfe81369b22a69f729207 (patch)
treecfd3e2a7ad0c05c3e806f96ff588db1c300f2286
parenta6d2b66651971793afc0fc24aa6cee27533f0863 (diff)
downloaddotfiles-698eee0330b6e8c41abbfe81369b22a69f729207.tar.gz

Only install Vim plugins if vim is present

This also consolidates vim-related code.

-rwxr-xr-xinstall.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/install.sh b/install.sh
index 9ed0ebe..28f9c97 100755
--- a/install.sh
+++ b/install.sh
@@ -30,12 +30,12 @@ if [ "$(uname)" = Linux ]; then
ln -sf "$HOME"/.shrc "$HOME"/.bashrc;
fi
-mkdir -p "$VIM_REPOS" "$VIM_PLUGS"
-clone_plugin https://git.linskey.org/ale/
-clone_plugin https://git.linskey.org/ctrlp.vim/
-clone_plugin https://git.linskey.org/iceberg.vim/
+if command -v vim >/dev/null; then
+ mkdir -p "$VIM_REPOS" "$VIM_PLUGS"
+ clone_plugin https://git.linskey.org/ale/
+ clone_plugin https://git.linskey.org/ctrlp.vim/
+ clone_plugin https://git.linskey.org/iceberg.vim/
-# Regenerate Vim help tags.
-if type vim >/dev/null 2>&1; then
+ # Regenerate Vim help tags.
vim -e -s -u NONE -c 'helptags ALL' -c q;
fi