summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@mailbox.org>2022-10-17 01:54:43 +0200
committerJustin Gassner <justin.gassner@mailbox.org>2022-10-17 01:54:43 +0200
commit37d1285c29ba193d51a60f4cd8ba24f93029e00f (patch)
tree66dc9c28b62b06e29b5b10d64058a5f2ad38bd83
parent2a5b77d50629a0535ac4d80afc3896e98124f405 (diff)
downloaddotfiles-37d1285c29ba193d51a60f4cd8ba24f93029e00f.tar.zst
Neovim plugin upgrade functionality
-rwxr-xr-x.local/bin/upgrade5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/bin/upgrade b/.local/bin/upgrade
index e6955eb..909b170 100755
--- a/.local/bin/upgrade
+++ b/.local/bin/upgrade
@@ -8,3 +8,8 @@ mapfile -t orphans < <(pacman -Qdttq)
if (( ${#orphans[@]} )); then
sudo pacman -Rns "${orphans[@]}"
fi
+
+# Update Neovim plugins
+if [[ -d ~/.config/nvim/pack/ ]]; then
+ find ~/.config/nvim/pack/ -name .git -type d -print -execdir git pull \;
+fi