diff --git a/modules/homebrew/init.zsh b/modules/homebrew/init.zsh index 101b6b97..37ac52f5 100644 --- a/modules/homebrew/init.zsh +++ b/modules/homebrew/init.zsh @@ -20,8 +20,10 @@ alias brewC='brew cleanup --force' alias brewi='brew install' alias brewl='brew list' alias brews='brew search' -alias brewu='brew upgrade' -alias brewU='brew update && brew upgrade' +brewu() { + brew update + [[ -z $1 ]] && brew upgrade --all || brew upgrade "$@" +} alias brewx='brew remove' # Homebrew Cask