mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
if exist brew add z
This commit is contained in:
parent
e8e98aff28
commit
a4591962aa
1 changed files with 7 additions and 5 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
if [ -f `brew --prefix`/etc/profile.d/z.sh ]; then
|
if [ $( which brew ) ]; then
|
||||||
|
if [ -f `brew --prefix`/etc/profile.d/z.sh ]; then
|
||||||
. `brew --prefix`/etc/profile.d/z.sh
|
. `brew --prefix`/etc/profile.d/z.sh
|
||||||
function precmd () {
|
function precmd () {
|
||||||
z --add "$(pwd -P)"
|
z --add "$(pwd -P)"
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue