From b7b48e1e229575a4f7fbc51ef57c6b95d97cd76b Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Tue, 25 Nov 2008 18:21:49 -0600 Subject: [PATCH] solaris can also have slocate on it --- zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index a1d8bf7..dcbc7fc 100644 --- a/zshrc +++ b/zshrc @@ -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 ;;