From a0a3ccf460473cf0a731e6d86335dae1ae0e29b5 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sun, 10 Apr 2016 15:10:56 -0300 Subject: [PATCH] fixed linux init --- homebrew/aliases.zsh | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/homebrew/aliases.zsh b/homebrew/aliases.zsh index dc051a5a8..8bf68caf5 100755 --- a/homebrew/aliases.zsh +++ b/homebrew/aliases.zsh @@ -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