wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.08k stars 703 forks source link

autojump/j not working in Raspberry Pi OS 32bit (debian buster) #610

Closed bassamanator closed 3 years ago

bassamanator commented 3 years ago

I did the manual install. Added [[ -s /home/pi/.autojump/etc/profile.d/autojump.sh ]] && source /home/pi/.autojump/etc/profile.d/autojump.sh autoload -U compinit && compinit -u to the end of .zshrc.

When I do autojump testdirectory or j testdirectory (testdirectory exists btw) the shell says . and the directory doesn't change.

suzaku commented 3 years ago

Maybe you want to give shonenjump a try instead.

MikeFoden commented 3 years ago

@bassamanator did you navigate to this directory before trying to use autojump?

You can use j -s to see it has been seen before and to learn its weighting.

bassamanator commented 3 years ago

So I didn't make any changes at all but things are working on my RPI now. I have been updating it and what not...

MikeFoden commented 3 years ago

That's because you have been building up autojump's cache. 👍🏻

bassamanator commented 3 years ago

Can that possibly be correct? I was doing j actualDirName which used to result in a . and the directory wouldn't change.

MikeFoden commented 3 years ago

It only knows of folders when you have been to them, so it can cache its location.