weirdion / dotfiles

.[dot] files for providing shell aliases, functions and git aliases
The Unlicense
0 stars 0 forks source link

Current oh-my-zsh implementation does not autoupdate plugins/themes #4

Open weirdion opened 3 years ago

weirdion commented 3 years ago

Tracking issue: https://github.com/ohmyzsh/ohmyzsh/issues/9512

weirdion commented 3 years ago

Temporary workaround is to implement https://unix.stackexchange.com/a/597740 in tools/upgrade.sh before exit $ret

printf "\n${BLUE}%s${RESET}\n" "Updating custom plugins and themes"
cd custom/
for plugin in plugins/*/ themes/*/; do
  if [ -d "$plugin/.git" ]; then
     printf "${YELLOW}%s${RESET}\n" "${plugin%/}"
     git -C "$plugin" pull
  fi
done