wting / autojump

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

autojump not working my M1 laptop #650

Open TorvaldsDB opened 2 years ago

TorvaldsDB commented 2 years ago

I saw the issue https://github.com/wting/autojump/issues/196, but I don't think my problem is the same with it

I have used the autojump for a long time. but it hasn't been working since I used the M1 laptop.

I installed it by homebrew brew install autojump, and I set the two following two lines commands into my .zshrc

[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh

but it still doesn't work anymore.

Help me. I really do love it. I can NOT lose it.

image
PictorSHIN commented 2 years ago

Seems I have the same issue. it's installed correctly but not working.

TorvaldsDB commented 2 years ago

Seems I have the same issue. it's installed correctly but not working.

I knew the reason since it is not compatible with the M1 and HOMEBREW contributors are not fixing them anymore.

Here: https://github.com/Homebrew/brew/issues/7857#issue-647960270

image

and comment from one of the comtributor:

image
Wesley-Ong commented 1 year ago

that's sad, is there any similar tools I can use on M1 mac ?

itsbrex commented 1 year ago

@Wesley-Ong https://github.com/rupa/z works great. you have to z to the full directory path at least once tho for the fuzzy to work.

Example:

If you initially run: z ~/Downloads

To get to ~/Downloads again, this will work: z down --> ~/Downloads

Wesley-Ong commented 1 year ago

That works ! And I also wanna share that my collegue using zim + brew install works fine. ( I was using ohmyzsh + brew install, not sure they're relating or not )

GeojoL commented 1 year ago

try source [ -f /opt/homebrew/etc/profile.d/autojump.sh ] && source /opt/homebrew/etc/profile.d/autojump.sh [[ -s brew --prefix/etc/autojump.sh ]] && source brew --prefix/etc/autojump.sh

spydon commented 1 year ago

It works fine for me on M1 when installing autojump from homebrew and then adding it to .zshrc with antigen bundle autojump.

Check antigen installation instructions here: https://github.com/zsh-users/antigen

# Path to you antigen script
source ~/.config/lconfig/remote/antigen.zsh

# Load the oh-my-zsh's library.
antigen use oh-my-zsh

# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle autojump

# Tell Antigen that you're done.
antigen apply
RodCato commented 11 months ago

@spydon Thanks! I was able to get it working based on your comment!!!

dribble-njr commented 11 months ago

it can't work on m2, does somebody can solve this?

giventofly commented 4 days ago

[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && source /opt/homebrew/etc/profile.d/autojump.sh [[ -s brew --prefix/etc/autojump.sh ]] && source brew --prefix/etc/autojump.sh

this worked for me on a Air M3

wting commented 3 days ago

FYI I use autogen just fine when installing from source on a M1 Macbook, but don't have experience with other package managers besides Homebrew.