autojump icon indicating copy to clipboard operation
autojump copied to clipboard

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

Open paultopia opened this issue 7 years ago • 12 comments

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.

paultopia avatar Jun 12 '17 23:06 paultopia

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

vunhan avatar Jun 14 '17 05:06 vunhan

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

blakehurlburt avatar Jun 19 '17 18:06 blakehurlburt

@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!

Houinside avatar Oct 04 '17 11:10 Houinside

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

opensas avatar Apr 15 '18 08:04 opensas

@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.

SilentGene avatar Jun 20 '18 10:06 SilentGene

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

mokanfar avatar Jun 29 '18 10:06 mokanfar

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!

delvindonn avatar Nov 27 '18 08:11 delvindonn

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.

hancerli avatar Aug 03 '19 11:08 hancerli

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

You saved my life

Unequaled804 avatar Apr 25 '21 09:04 Unequaled804

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!

I was used brew to install autojump It works thanks

ticktockKK avatar Nov 05 '21 03:11 ticktockKK

if you're a fish user you can use the cp /usr/share/autojump/autojump.fish ~/.config/fish/conf.d/ command

don't forget to open a new terminal window in order to use autojump!

Kalitsune avatar Mar 28 '23 18:03 Kalitsune

@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.

You are right, i forget that, tks!

Houinside avatar Apr 29 '23 15:04 Houinside