From 4334156eebb85522a3a2c06491a2ede0eb4204ee Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 25 Sep 2018 20:34:30 +0200 Subject: [PATCH] Do not alias to mars if mars not installed --- zsh/aliases.zsh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 042da2c..3996797 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -9,8 +9,6 @@ alias top="htop" # Vim like alias alias :q="exit" -alias make="mars" - # Avoid typos alias ake="make" @@ -62,3 +60,9 @@ command -v thefuck > /dev/null 2>&1 if [ $? -eq 0 ]; then eval $(thefuck --alias) fi + +command -v mars > /dev/null 2>&1 +if [ $? -eq 0 ]; then + alias make="mars" +fi +