Dont alias pacman if pacman not installed
This commit is contained in:
parent
7797f2eede
commit
c988d8d5a1
|
@ -19,7 +19,10 @@ alias cake="cmake"
|
||||||
alias pdf="evince"
|
alias pdf="evince"
|
||||||
|
|
||||||
# Auto color on pacman
|
# Auto color on pacman
|
||||||
alias pacman='pacman --color=auto'
|
command -v pacman > /dev/null 2>&1
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
alias pacman='pacman --color=auto'
|
||||||
|
fi
|
||||||
|
|
||||||
# clean for cmake files
|
# clean for cmake files
|
||||||
alias cclean='rm -rf `find . -name "CMakeCache.txt"` `find . -name "cmake_install.cmake"` `find . -name "CMakeFiles"` `find . -name "Makefile"`'
|
alias cclean='rm -rf `find . -name "CMakeCache.txt"` `find . -name "cmake_install.cmake"` `find . -name "CMakeFiles"` `find . -name "Makefile"`'
|
||||||
|
|
Loading…
Reference in New Issue