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

Maybe I am a retard, but autojump doesn't seem to work on Natty Narwhal #65

Open
ghost opened this issue Jul 25, 2011 · 23 comments
Open

Maybe I am a retard, but autojump doesn't seem to work on Natty Narwhal #65

ghost opened this issue Jul 25, 2011 · 23 comments
Labels

Comments

@ghost
Copy link

@ghost ghost commented Jul 25, 2011

Hello,

I installed autojump in Ubuntu 11.04 from synaptic and I can't get it to work. I added source /etc/profile in my bashrc,
closed and opened my terminal again, and whenever I try to use jumpstat it says command not found.
I tried to train jumpstat by navigating a bit in my filesystem, but when I try j derp to go to a directory, it also says j: command not found.

Am I missing something?

@joelthelion
Copy link
Collaborator

@joelthelion joelthelion commented Jul 26, 2011

I can confirm this is not normal at all :)

Can you try sourcing /etc/profile.d/autojump.bash (assuming you're using bash) directly in your bashrc? Then j and jumpstat should be defined (they're bash aliases), and the PROMPT_COMMAND environment variable should contain autojump related stuff.

@ghost
Copy link
Author

@ghost ghost commented Jul 26, 2011

Hello,

I did what you explained and now when I open a terminal I get:

bash: /etc/profile.d/autojump.bash: No such file or directory
cbrunos@foxdie: ~$

Any other ideas?

On Tue, Jul 26, 2011 at 10:08 AM, joelthelion <
reply@reply.github.com>wrote:

I can confirm this is not normal at all :)

Can you try sourcing /etc/profile.d/autojump.bash (assuming you're using
bash) directly in your bashrc? Then j and jumpstat should be defined
(they're bash aliases), and the PROMPT_COMMAND environment variable should
contain autojump related stuff.

Reply to this email directly or view it on GitHub:
#65 (comment)

Rodrigues Bruno

http://cbrunos.wordpress.com

@ghost
Copy link
Author

@ghost ghost commented Jul 26, 2011

Ok, so I downloaded the latest autojump version (v15) and copy pasted autojump.bash to /etc/profile.d and now it works great. I think it's a problem with the package that is on Ubuntu repos?

@joelthelion
Copy link
Collaborator

@joelthelion joelthelion commented Aug 19, 2011

I'd be interested if another ubuntu user can comment on this?

@joelthelion
Copy link
Collaborator

@joelthelion joelthelion commented Sep 2, 2011

@CbrunoS: would you mind pasting the output of

dpkg -L autojump

@ghost
Copy link
Author

@ghost ghost commented Sep 2, 2011

Sure, here it is:

cbrunos@bamboo:~$ dpkg -L autojump
/.
/usr
/usr/bin
/usr/bin/autojump
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/autojump.1.gz
/usr/share/autojump
/usr/share/autojump/autojump.bash
/usr/share/autojump/autojump.zsh
/usr/share/autojump/autojump.sh
/usr/share/zsh
/usr/share/zsh/functions
/usr/share/zsh/functions/Completion
/usr/share/zsh/functions/Completion/Unix
/usr/share/zsh/functions/Completion/Unix/_j
/usr/share/doc
/usr/share/doc/autojump
/usr/share/doc/autojump/README.Debian
/usr/share/doc/autojump/copyright
/usr/share/doc/autojump/README.rst.gz
/usr/share/doc/autojump/changelog.Debian.gz
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/autojump

@joelthelion
Copy link
Collaborator

@joelthelion joelthelion commented Sep 9, 2011

I've asked the debian maintainer about this problem, and you need to source /usr/share/autojump.bash (instead of /etc/profile.d/autojump.bash) in your bashrc, as described in the documentation of the package.

@joelthelion joelthelion closed this Sep 9, 2011
@burgerga
Copy link

@burgerga burgerga commented Nov 29, 2011

I installed autojump in oneiric, and "locate autojump.bash" gives me /usr/share/autojump/autojump.bash, so for everyone having trouble this should be the file to source.

@JamesMcMahon
Copy link

@JamesMcMahon JamesMcMahon commented Aug 9, 2012

Seems strange that the Ubuntu doesn't source autojump.bash by default. I can confirm that this is still the case under 12.04.

apt-file is useful for diagnosing stuff like this, see http://askubuntu.com/questions/173821/

@tareq1988
Copy link

@tareq1988 tareq1988 commented Oct 5, 2012

Using 12.04, same happened for me.

@wting wting reopened this Oct 5, 2012
@wting
Copy link
Owner

@wting wting commented Oct 5, 2012

This is most likely due to a Debian policy where we're not allowed to modify user profile files upon installation. Since Ubuntu is downstream, it's unlikely they've changed behavior back to what should be expected unless they repatched over Debian's patch.

@Natim
Copy link

@Natim Natim commented Dec 21, 2012

Same problem here on 12.10 - Since you install autojump by hand, it should autoconfigure it to work with bash or at least ask you for it or display some informations.

@yugaljindle
Copy link

@yugaljindle yugaljindle commented Oct 2, 2013

Same problem with Ubuntu 13.04
Autojump doesn't work and j is not found.

Any alternate place to install autojump ?

@wting
Copy link
Owner

@wting wting commented Oct 2, 2013

@yugal: I'll need to look into it, but don't have time right now.

In the mean time you should manually install autojump.

@ElijahLynn
Copy link

@ElijahLynn ElijahLynn commented Jan 15, 2014

Same here on 13.04.

Update: For anyone having this issue just do what it says in the readme.md.
cat /usr/share/doc/autojump/README.Debian

Update2: j works now with the above instructions but jo and jc and jco do not, 'command not found'. I think it is because Ubuntu's repo is at v20 (autojump --version) and the latest tag I see is at v21.6.9

@yugaljindle
Copy link

@yugaljindle yugaljindle commented Jan 15, 2014

There is file that needs to be sourced for it to work. I don't remember which ( Please google ).
This is due to security policies that it can-not be done automatically. ( If I am not wrong )

If you are using oh-my-zsh like myself, then you can add autojump plugin in .zshrc which does the needful for autojump to work.

I know its a bummer - may be someone comes up with a solution soon.
( I am not one of the developer of autojump - so my info might not be most appropriate )

Refer this : https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/autojump/autojump.plugin.zsh

You should be fine !

@ElijahLynn
Copy link

@ElijahLynn ElijahLynn commented Jan 15, 2014

@yugal Thanks for your reply. I got it working by adding the below code to ~/.bash_profile and then running source ~/.bash_profile.

# Manually source autojump - https://github.com/joelthelion/autojump
. /usr/share/autojump/autojump.sh

@yugaljindle
Copy link

@yugaljindle yugaljindle commented Jan 15, 2014

:)

@prafulliu
Copy link

@prafulliu prafulliu commented Jun 16, 2014

Thanks. Same problem solved in Ubuntu 12.04.

@lpanebr
Copy link

@lpanebr lpanebr commented Jun 23, 2014

thanks!

@ChanderG
Copy link

@ChanderG ChanderG commented Jul 23, 2014

Thanks.

@baryaqod
Copy link

@baryaqod baryaqod commented Oct 31, 2016

Thanks. Same problem solved in Ubuntu Debian 8.

  1. adding . /usr/share/autojump/autojump.sh ( remember to give whitespace after . :) ) , as told in /usr/share/doc/autojump/README.Debian. ( if you dont find in /usr/share/ in your system. you can download the .deb file and read the README.Debian.
  2. source ~/.bashrc or ~/.bash_profile
  3. Solved :).

thanks everyone :)

//before, i thought some thing wrong in my instalation, but for Debian we have to do it manually.

@wting
Copy link
Owner

@wting wting commented Oct 31, 2016

Yeah, I wish we could do it automatically for users but that runs afoul of Debian's guidelines. 😿

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

Successfully merging a pull request may close this issue.

None yet