rominf / omf-plugin-autojump

Fish shell plugin for autojump integration
MIT License
2 stars 4 forks source link

autojump not loaded #3

Open Morpheus0x opened 3 years ago

Morpheus0x commented 3 years ago

I have installed autojump via my package manager and this omf plugin for fish. In a fresh shell i get the error j: command not found. After running autojump I can successfully run j. In /usr/share/doc/autojump/README.Debian are instructions to source the autojump script. This plugin should accomplish that...

System: Pop_OS 20.04 Shell: fish with omf

rominf commented 3 years ago

I don't have a machine with Debian installed, so I don't think I could help you, sorry.

I keep it open so that other could help you with that.

valberg commented 1 year ago

I have the same issue.

This is what happens:

~ λ omf reload
~ λ j
fish: Unknown command: j
~ λ autojump tmp
/home/valberg/tmp/
~ λ j tmp
/home/valberg/tmp/
tmp λ 
VietTralala commented 1 year ago

I had the same issue. Add the following to ~/.config/fish/config.fish fixes it for me:

function j
    set new_path (autojump $argv)

    if test -d "$new_path"
        echo $new_path
        cd "$new_path"
    else
        echo "autojump: directory '$argv' not found"
        echo "Try \`autojump --help\` for more information."
        false
    end
end

code from here: https://coderwall.com/p/orvsva/autojump-function-in-the-fish-shell