J, jco, jc or jo does not exist after installing autojump on Mac OSX Yosemite

I installed autojump on my Mac OSX Yosemite using brew using

brew install autojump 

Now I can’t use it, because when I try to use it:

 jc asfg -bash: jc: command not found jo asfg -bash: jo: command not found j asdj -bash: j: command not found 

none of them exist. Any suggestions on what I'm doing wrong?

thanks

+6
source share
1 answer

If you have not already done so, you can follow the instructions printed in my last installation:

 Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember to source the file to update your current session): [[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh 

For example, if you added a line to .bash_profile, you can specify it as follows:

 . ~/.bash_profile 

Or just run a new command shell and the variables should take effect.

If you are unsuccessful, it's time to seriously deal with the problem.

If you installed it correctly, you should have a file named autojump.sh in the brew directory (which you can see with brew --prefix ). If this file is there, you should be able to execute the following command, which should temporarily allow the use of autojump commands in this particular shell:

 . $(brew --prefix)/etc/profile.d/autojump.sh 

If you manage to execute the autojump commands, it is a matter of modifying your .bashrc or .zshrc file, as indicated at the beginning of this answer.

If autojump commands are still not visible, I will try "brew remove autojump" and then "brew install autojump". Oh, and be sure to follow the instructions in the "Cautions" section after a successful installation.

+6
source

All Articles