z icon indicating copy to clipboard operation
z copied to clipboard

Not working at all! Help!

Open ghost opened this issue 4 years ago • 6 comments

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!

ghost avatar Apr 20 '21 07:04 ghost

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 avatar May 02 '21 18:05 twosdai

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.

twosdai avatar May 02 '21 18:05 twosdai

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

MatthiasPortzel avatar May 06 '21 04:05 MatthiasPortzel

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

code4happylife avatar May 31 '21 12:05 code4happylife

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

swyxio avatar May 23 '22 03:05 swyxio

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

MatthiasPortzel avatar May 24 '22 16:05 MatthiasPortzel