autojump demands one read post installation instructions, but doesn't actually provide post-installation instructions

Created on 13 Jun 2017  ·  9Comments  ·  Source: wting/autojump

On Ubuntu 17.04. Installing with sudo apt-get install autojump. Attempt to use: autojump produces:

Please source the correct autojump file in your shell's
startup file. For more information, please reinstall autojump
and read the post installation instructions.

however, there are no post-installation instructions provided. It's just an ordinary apt-get message.

Most helpful comment

If you look at the man page (by running man autojump), you get (excess information elided):

autojump must be loaded before it can be used.

Load autojump
. /usr/share/autojump/autojump.sh

All 9 comments

Same problem on Archlinux, but you can find autojump.{bash,fish,zsh} here

If you look at the man page (by running man autojump), you get (excess information elided):

autojump must be loaded before it can be used.

Load autojump
. /usr/share/autojump/autojump.sh

@paultopia , I'm using Bash, and got the same problem on my Archlinux. it was fixed by this way:

STEP 1. add correct autojump file in your shell's startup file.
echo "/usr/share/autojump/autojump.bash" >> ~/.bashrc

STEP 2. make sure the autojumpfile has the right permission.
chmod 755 /usr/share/autojump/autojump.bash

STEP 3. check the _bashdb_ has installed,
sudo pacman -Syy bashdb

STEP 4. source the shell's startup file if you want use _autojump_ right now
source ~/.bashrc
Finally, it works!

Working on arch linux, @Houinside instrucctions worked ok, except for two things

  1. you have to source autojump.bash file

echo ". /usr/share/autojump/autojump.bash" >> ~/.bashrc

  1. couldn't install bashdb package, but it seems to work fine anyway

@Houinside What you should really notice is that the command is:
echo ". /usr/share/autojump/autojump.bash" >> ~/.bashrc
rather than:
echo "/usr/share/autojump/autojump.bash" >> ~/.bashrc

I mean, the dot and a space before the command should not be ignored.

If you use bash try doing this command in terminal:
echo "source /usr/share/autojump/autojump.bash" >> ~/.bashrc && source ~/.bashrc

zsh users:
echo "source /usr/share/autojump/autojump.zsh" >> ~/.zshrc && source ~/.zshrc

Now cd into a couple directories and try j <some_dir> command

Wow, I get the right way!
First, after you install it by (brew install autojump),
you need type (brew info auto),will show :
image
and open your ~/.bash_profile, type the red line wrap words into the end line of file,
finally, source ~/.bash_profile.
it will works!

If you look at the man page (by running man autojump), you get (excess information elided):

autojump must be loaded before it can be used.
Load autojump
. /usr/share/autojump/autojump.sh

It doesn't show up in the manual anymore.

echo "source /usr/share/autojump/autojump.zsh" >> ~/.zshrc && source ~/.zshrc

You saved my life

Was this page helpful?
0 / 5 - 0 ratings