From: Ruben Beltran del Rio Date: Wed, 14 Jun 2023 19:36:33 +0000 (+0200) Subject: Correct alias for graphicsmagick X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/0c7ba6eb610e4b2a1f9b49a380134b0d621774e8?ds=inline;hp=-c Correct alias for graphicsmagick --- 0c7ba6eb610e4b2a1f9b49a380134b0d621774e8 diff --git a/zsh/modules/aliases.zsh b/zsh/modules/aliases.zsh index 623d75d..2037e9e 100644 --- a/zsh/modules/aliases.zsh +++ b/zsh/modules/aliases.zsh @@ -28,7 +28,9 @@ alias gm='git merge' alias gp='git push' # Graphicsmagick override -alias grm="$(brew --prefix)/bin/gm" +if command -v brew &> /dev/null; then + alias grm="$(brew --prefix)/bin/gm" +fi # JS friendly tree alias arbol="tree -I 'node_modules|bower_components|doc|__pycache__|\.pyc'"