Reputation: 1289
iterm2 ohmyzsh
In 'zsh' I can't use 'z' to search folders, appears command not found: z
I try to run
source "$(brew --prefix)/etc/profile.d/z.sh"
and
source /usr/local/etc/profile.d/z.sh
but doesn't work
Upvotes: 14
Views: 17950
Reputation: 494
Another possibility,unalias -a
is put below source /path/to/z.sh
or source /path/to/oh-my-zsh.sh
, because z
is an alias for _z
$ type z
z is an alias for _z 2>&1
so, remove unalias -a
(or comment this line )
or put it above source /path/to/oh-my-zsh.sh
(or source /path/to/z.sh
). eg:
unalias -a
source $ZSH/oh-my-zsh.sh
or add source $ZSH/oh-my-zsh.sh
at the end of .zshrc
file.
Upvotes: 0
Reputation: 1289
I got it!,
First:
vim ~/.zshrc
and
plugins=(
git
z
)
exit with :x!
And run
source ~/.zshrc
Upvotes: 29