Skip to content

Instantly share code, notes, and snippets.

@dstockhammer
Created March 16, 2020 14:35
Show Gist options
  • Save dstockhammer/b115d53cd5c6565062435a7b931883d2 to your computer and use it in GitHub Desktop.
Save dstockhammer/b115d53cd5c6565062435a7b931883d2 to your computer and use it in GitHub Desktop.
Upgrade oh-my-zsh custom plugins and themes (add to the end of .oh-my-zsh/tools/upgrade.sh)
printf "\n${BLUE}%s${NORMAL}\n" "Updating custom plugins and themes"
for plugin in custom/*/*/; do
if [ -d "$plugin/.git" ]; then
printf "${YELLOW}%s${NORMAL}\n" "${plugin%/}"
git -C "$plugin" pull
fi
done
printf "${BLUE}%s${NORMAL}\n" "Hooray! Custom plugins and themes have been updated and/or are at the current version."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment