Skip to content
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

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

Open
paultopia opened this issue Jun 12, 2017 · 12 comments

Comments

@paultopia
Copy link

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.

@vunhan
Copy link

vunhan commented Jun 14, 2017

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

@blakehurlburt
Copy link

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

@Houinside
Copy link

Houinside commented Oct 4, 2017

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

@opensas
Copy link

opensas commented Apr 15, 2018

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

@SilentGene
Copy link

SilentGene commented Jun 20, 2018

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

@mokanfar
Copy link

mokanfar commented Jun 29, 2018

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

@delvindonn
Copy link

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!

@hancerli
Copy link

hancerli commented Aug 3, 2019

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.

@Unequaled804
Copy link

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

You saved my life

@ticktockKK
Copy link

ticktockKK commented Nov 5, 2021

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

@Kalitsune
Copy link

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!

@Houinside
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests