diff options
| author | Benjamin Linskey | 2026-05-26 23:05:36 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-05-26 23:05:36 -0400 |
| commit | 698eee0330b6e8c41abbfe81369b22a69f729207 (patch) | |
| tree | cfd3e2a7ad0c05c3e806f96ff588db1c300f2286 | |
| parent | a6d2b66651971793afc0fc24aa6cee27533f0863 (diff) | |
| download | dotfiles-698eee0330b6e8c41abbfe81369b22a69f729207.tar.gz | |
Only install Vim plugins if vim is present
This also consolidates vim-related code.
| -rwxr-xr-x | install.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |