]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Correct alias for graphicsmagick
authorRuben Beltran del Rio <redacted>
Wed, 14 Jun 2023 19:36:33 +0000 (21:36 +0200)
committerRuben Beltran del Rio <redacted>
Wed, 14 Jun 2023 19:36:33 +0000 (21:36 +0200)
zsh/modules/aliases.zsh

index 623d75d6484255809a39c2b79579eff96bd70669..2037e9e9313cb6176960399b9bdb34c2d2058ad9 100644 (file)
@@ -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'"