brew.plugin.zsh 850 B

123456789101112131415161718192021222324
  1. alias brewp='brew pin'
  2. alias brews='brew list -1'
  3. alias brewsp='brew list --pinned'
  4. alias bubo='brew update && brew outdated'
  5. alias bubc='brew upgrade && brew cleanup'
  6. alias bubu='bubo && bubc'
  7. alias bcubo='brew update && brew cask outdated'
  8. alias bcubc='brew cask reinstall $(brew cask outdated) && brew cleanup'
  9. if command mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then
  10. print -P '%F{yellow}'Oh My Zsh brew plugin:
  11. cat <<-'EOF'
  12. With the advent of their 1.0 release, Homebrew has decided to bundle
  13. the zsh completion as part of the brew installation, so we no longer
  14. ship it with the brew plugin; now it only has brew aliases.
  15. If you find that brew completion no longer works, make sure you have
  16. your Homebrew installation fully up to date.
  17. You will only see this message once.
  18. EOF
  19. print -P '%f'
  20. fi