Do not alias to mars if mars not installed

This commit is contained in:
Thomas Forgione 2018-09-25 20:34:30 +02:00
parent 48385a0b23
commit 4334156eeb
1 changed files with 6 additions and 2 deletions

View File

@ -9,8 +9,6 @@ alias top="htop"
# Vim like alias # Vim like alias
alias :q="exit" alias :q="exit"
alias make="mars"
# Avoid typos # Avoid typos
alias ake="make" alias ake="make"
@ -62,3 +60,9 @@ command -v thefuck > /dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
eval $(thefuck --alias) eval $(thefuck --alias)
fi fi
command -v mars > /dev/null 2>&1
if [ $? -eq 0 ]; then
alias make="mars"
fi