summaryrefslogtreecommitdiff
path: root/fish/functions/autojump.fish
blob: a2658457f95bf4bec1f85ce744940373275c51fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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