if exist brew add z

This commit is contained in:
JuanPablo 2011-08-16 17:34:05 -04:00
commit a4591962aa

View file

@ -1,6 +1,8 @@
if [ -f `brew --prefix`/etc/profile.d/z.sh ]; then
. `brew --prefix`/etc/profile.d/z.sh
function precmd () {
z --add "$(pwd -P)"
}
if [ $( which brew ) ]; then
if [ -f `brew --prefix`/etc/profile.d/z.sh ]; then
. `brew --prefix`/etc/profile.d/z.sh
function precmd () {
z --add "$(pwd -P)"
}
fi
fi