Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
fixed linux init
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 10, 2016
1 parent fcfca25 commit a0a3ccf
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions homebrew/aliases.zsh
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
#!/bin/sh
which brew >/dev/null 2>&1 || return
brew() {
case "$1" in
cleanup)
command brew cleanup
command brew cask cleanup
command brew prune
;;
bump)
command brew update
command brew upgrade --all
brew cleanup
;;
*)
command brew "$@"
;;
esac
}
if which brew >/dev/null 2>&1; then
brew() {
case "$1" in
cleanup)
command brew cleanup
command brew cask cleanup
command brew prune
;;
bump)
command brew update
command brew upgrade --all
brew cleanup
;;
*)
command brew "$@"
;;
esac
}
fi

0 comments on commit a0a3ccf

Please sign in to comment.