aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/update-vim-plugins.sh
blob: 52864346c025eba45988e94d5a6a25d1505eba5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

PLUGIN_DIR="${HOME}/.vim/pack"

echo "Updating all plugins in ${PLUGIN_DIR}"
for directory in ${PLUGIN_DIR}/*; do
    for subdir in "$directory"/start/* "$directory"/opt/*; do
        if [ -d "${subdir}" ]; then
            plugin=$(basename "${subdir}")
            echo "Updating ${plugin}"
            git -C "${subdir}" pull
        fi
    done
done