diff options
author | Justin Gassner <justin.gassner@mailbox.org> | 2023-08-26 11:59:56 +0200 |
---|---|---|
committer | Justin Gassner <justin.gassner@mailbox.org> | 2023-08-26 11:59:56 +0200 |
commit | 97a347d6000440ec267b8031644ebd9bf2d95088 (patch) | |
tree | d091cef96f169db98f753351ae6f253e45b8e270 /.local/bin/upgrade | |
parent | e93ea568751ab41e806d8cb729672f79465c95e7 (diff) | |
download | dotfiles-97a347d6000440ec267b8031644ebd9bf2d95088.tar.zst |
Upgrade script: use git submodule to update plugins
Diffstat (limited to '.local/bin/upgrade')
-rwxr-xr-x | .local/bin/upgrade | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/.local/bin/upgrade b/.local/bin/upgrade index e403d83..9907934 100755 --- a/.local/bin/upgrade +++ b/.local/bin/upgrade @@ -22,12 +22,5 @@ fi # Manage .pac* files sudo pacdiff -# Update Neovim plugins -if [[ -d ~/.config/nvim/pack/ ]]; then - find ~/.config/nvim/pack/ -name .git -type d -print -execdir git pull \; -fi - -# Update mpv plugins -if [[ -d ~/.config/mpv/scripts/ ]]; then - find ~/.config/mpv/scripts/ -name .git -type d -print -execdir git pull \; -fi +# Update nvim and mpv plugins +git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME submodule update --remote |