solaris can also have slocate on it

This commit is contained in:
David Alexander Majnemer 2008-11-25 18:21:49 -06:00
parent 395d54464f
commit b7b48e1e22

4
zshrc
View file

@ -111,7 +111,9 @@ case `uname -s` in
alias grep='ggrep -d skip --color=auto'
fi
if (which glocate &> /dev/null) ; then
if (which slocate &> /dev/null) ; then
alias locate='slocate'
elif (which glocate &> /dev/null) ; then
alias locate='glocate'
fi
;;