Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2830  / 3 Years ago, sun, august 15, 2021, 4:05:44

https://launchpad.net/ubuntu/+source/autojump



I installed with apt-get, checked out the man page and added
. /usr/share/autojump/autojump.sh to my .bashrc, like it says. When I cd around the filesystem, nothing gets added to ~/.local/share/autojump. I then tried adding . /usr/share/autojump/autojump.bash, but that didn't work either.



autojump -a ~/Dropbox properly creates a file ~/.local/share/autojump/autojump.txt, but running j Drop < TAB > doesn't autocomplete to j ~/Dropbox/ as it should. However, j < TAB > does autocomplete to j ~/Dropbox.



I know my bash-completion is working since it works for git, dd, and others.



I know there's a newer version in the repositories set for Quantal. Perhaps that would work? I don't know how to install that version though. I've used autojump with mac homebrew (and it installed without any issue), so I know there is missing functionality.



In general I'm really annoyed that I can't get this working...I've spent hours on it! Needless to say, help would be very appreciated.


More From » 12.04

 Answers
4

(As posted in https://github.com/joelthelion/autojump/issues/148 )



autojump silently fails if PROMPT_COMMAND has been overwritten:



If in your .bashrc you have export PROMPT_COMMAND="history -a; history -n;"



PROMPT_COMMAND - which autojump requires - will fail to be set properly.



Instead do: export PROMPT_COMMAND=$PROMPT_COMMAND"; history -a; history -n;"


[#35651] Monday, August 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sconhoney

Total Points: 403
Total Questions: 118
Total Answers: 109

Location: Andorra
Member since Mon, Jan 9, 2023
1 Year ago
;