Dont alias pacman if pacman not installed

This commit is contained in:
Thomas Forgione 2018-09-26 18:14:38 +02:00
parent 7797f2eede
commit c988d8d5a1
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@ alias cake="cmake"
alias pdf="evince"
# Auto color on pacman
command -v pacman > /dev/null 2>&1
if [ $? -eq 0 ]; then
alias pacman='pacman --color=auto'
fi
# clean for cmake files
alias cclean='rm -rf `find . -name "CMakeCache.txt"` `find . -name "cmake_install.cmake"` `find . -name "CMakeFiles"` `find . -name "Makefile"`'