New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh: command not found: j #196
Comments
Is zsh your default shell? I had a problem where autojump wouldn't work properly because bash was my default shell but I was using zsh. What do you get when you run |
yes, zsh is default shell. $ echo $SHELL
/bin/zsh |
Try adding this to your .zshrc:
|
Having the same problem. Strangely, I have changed my default shell using |
The Homebrew formula was updated recently, can you guys reinstall and see if you're having the same problems? |
Reinstall is fine, no problem, thanks. |
I'm actually having this issue as well... zsh is default, 'autojump' works whereas 'j' is not found. Just updated and installed to no avail. .zshrc add-in results in: |
Got the same problem with maxwerr.
and I add this on my .zshrc:
when call j:
|
I've had autojump for a long time and it has always worked fine. I just did a huge update of all homebrew stuff and it broke in the way that is being described above. I dug into the [[ -s `brew --prefix`/etc/autojump.zsh ]] && . `brew --prefix`/etc/autojump.zsh The trick was to use the zsh one since I am using zsh as my default shell. I realize this issue is closed, but hopefully that helps anyone who comes across this issue. |
Just to clarify there has always been multiple wrapper shell files ( @jbranchaud: The behavior of |
this one solved it for me. Mojave, zsh 5.3, autojump 22.5.3 |
Autojump is working fine on my old 2014 mac(big sur), but when i transfer to a m1 pro mbp, this happened. |
Looks like this command has changed at some point, but as of now it's a bit different. After installing autojump with brew, run it will print out the edit you need to make in your .zshrc/bash file reference:
|
Could this not be part of the brew formula? |
This one solved for me. Thanks a lot. |
I install autojump by brew, run command
But, there are some problem with me. First, I can only run the command
autojump
, thej
is not found when I run it. Then, I runautojump -a ~/code
, return error message:/Users/eward is my home dir. I think the problem is the tmp file is not writeable, So I create the dir
~/.local/share/autojump
for autojump. Now, the autojump --add is ok, but j is not available.Then from issue #178 I find out that, my .zshrc should include the etc file of autojump, And I add it to my .zshrc file
Final, autojump is work, but, I do not know, if so much trouble is because of what. May be, there is a bug, or may someone face the same problem with me. I hope this can helpful.
The text was updated successfully, but these errors were encountered: