rupa / z

z - jump around
Do What The F*ck You Want To Public License
16.38k stars 1.17k forks source link

Not working at all! Help! #297

Open ghost opened 3 years ago

ghost commented 3 years ago

I installed it via Homebrew on an M1 machine. When I type " z folderiwanttogetto " it just says "zsh: command not found: z" Am I doing something wrong? Help!

twosdai commented 3 years ago

What is your .zshrc file look like?

Its typically in the following path:

~/.zshrc

If it doesn't have

source ./path/to/z/z.sh in it then the command will not be loaded into your shell.

twosdai commented 3 years ago

Ah I didn't see that you installed it via homebrew. I've always installed it by cloning it and then specifying it in my .zshrc file. Try that it might help.

MatthiasPortzel commented 3 years ago

Homebrew downloads the file for you, but you still need to add . /usr/local/etc/profile.d/z.sh to your .zshrc

code4happylife commented 3 years ago

May be you need to let the ~/.zshrc take effect. https://github.com/rupa/z/pull/300/commits/8025f9f45c9f66cf0795b4b61b13780687eccb05

swyxio commented 2 years ago

in case it helps anyone, the bottom of #229 indicated that there was a change in the path of the homebrew install - its in /usr/homebrew now - see issue for ful path and details

MatthiasPortzel commented 2 years ago

I don't see a changed path. What are you referring to?