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 not working in Ubuntu #389
Comments
Update I added However, now when I do I think the current issue is still valid, so I leave it open. |
Hrm, I just looked in autojump.bash and it does an awful lot more than the docs indicated. I use PROMPT_COMMAND for something else, but the docs said autojump needs it for things, so I was careful to add 'history -a' as the docs indicated I'd need to do; but, of course, it still didn't pick up new directories. Source diving on autojump.bash indicated I really needed to simply source autojump after I add my PROMPT_COMMAND or add 'autojump_add_to_database' (not history -a). |
👍 on ubuntu autojump does not cd, only prints the path |
Is this still an issue? |
I barely remember the discussion... (2016?). It's solved on my end. I couldn't say if it's a problem for others, but the trouble for me was that I overuse my PROMPT_COMMAND and I have to really carefully inject autojump manually or it won't work. |
I'm still facing this issue. It's just printing the current path and not actually cd-ing. |
I had an issue after installing autojump it was not working. My configuration was Ubuntu 20.4 with bash-it installed. What I did was I placed the ". /usr/share/autojump/autojump.sh" before "HISTCONTROL" is set in my .bashrc file. I sourced the .bashrc file and it worked like a charm. |
I did
sudo apt-get install autojump
which installed v21.7.1; however, it does not pick up directories that icd
into, as I can verify withj -s
. There's a remark in the readme that warns people to mess around with$PROMPT_COMMAND
, and, in fact, i hadin my
.bashrc
. I've since out-commented that line, restarted and re-installed autojump to no avail.1)—could the cause of
autojump
not working be something else?2)—the readme isn't very clear of what a working
$PROMPT_COMMAND
line would have too look like; isexport PROMPT_COMMAND="history -a"
meant as an example for how to do it or for how not to do it (disclosure: I tried andsource
d, to no avail)3)—the readme doesn't give away a clear diagnostic to ascertain whether
$PROMPT_COMMAND
is or is not the culprit; IOW: what value/text should that variable have/contain to makeautojump
work properly?The text was updated successfully, but these errors were encountered: