wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.26k stars 705 forks source link

cd: The directory 'Please source the correct autojump file in your shell's' does not exist #346

Open hacpai opened 9 years ago

hacpai commented 9 years ago

My shell is fish-shell 2.1.1

OS is OS X 10.10.2

shuding commented 8 years ago

If you are using bash, run this script:

echo ' [[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh' >> ~/.bashrc && source ~/.bashrc

For zsh or fish, just replace the profile name.

Via https://www.quora.com/How-can-I-source-autojump-a-very-handy-tool-used-in-directory-jumping-in-Mac-OS

varunagrawal commented 7 years ago

The correct way to do it is to run the following command:

gorilla001 commented 7 years ago

@varunagrawal

spydon commented 6 years ago

I guess you should source the file too, so it should be something like:

iZhangZheng commented 6 years ago

For macOS, zsh: Open ~/.zhrc:open .zhrc Find "plugins=(git)" Add the name of plugin you just install. Then it will become "plugins=(git autojump)", just like this:

2018-02-26 5 01 43

I hope this will help!

spydon commented 6 years ago

@iZhangZheng this only works if you are using oh-my-zsh or something else that handles plugins, it would for example be antigen bundle autojump if you use zsh with antigen.

BaksiLi commented 5 years ago

For macOS, zsh: Open ~/.zhrc:open .zhrc Find "plugins=(git)" Add the name of plugin you just install. Then it will become "plugins=(git autojump)", just like this:

2018-02-26 5 01 43

I hope this will help!

I suppose it should be ~/.zshrc ?

DarylPinto commented 4 years ago

For anyone having this issue with bash on Ubuntu 18.04 (real machine or WSL), try this:

echo -e "# autojump\nsource /usr/share/autojump/autojump.bash" >> ~/.bashrc

Then reload your shell. Hope this helps!

kareemkasem commented 3 years ago

For anyone having this issue with bash on Ubuntu 18.04 (real machine or WSL), try this:

echo -e "# autojump\nsource /usr/share/autojump/autojump.bash" >> ~/.bashrc

Then reload your shell. Hope this helps!

it worked for me ❤️ (using solus 4.1 and bash 5.0.11)

xujuvenile commented 2 years ago

you can run brew info autojump and see the command on it


eg: image