autojump
autojump copied to clipboard
autojump demands one read post installation instructions, but doesn't actually provide post-installation instructions
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.
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
- you have to source autojump.bash file
echo ". /usr/share/autojump/autojump.bash" >> ~/.bashrc
- 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 :
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
Wow, I get the right way! First, after you install it by (brew install autojump), you need type (brew info auto),will show :
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
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 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!