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 if [ $( which brew ) ]; then
. `brew --prefix`/etc/profile.d/z.sh if [ -f `brew --prefix`/etc/profile.d/z.sh ]; then
function precmd () { . `brew --prefix`/etc/profile.d/z.sh
z --add "$(pwd -P)" function precmd () {
} z --add "$(pwd -P)"
}
fi
fi fi