wting / autojump

A cd command that learns - easily navigate directories from the command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autojump not working my M1 laptop

TorvaldsDB opened this issue · comments

I saw the issue #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

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

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: Homebrew/brew#7857 (comment)

image

and comment from one of the comtributor:

image

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

@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

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 )

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

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
commented

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

commented

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