Skip to content

Usage for fish shell #2

@BrunoGiubilei

Description

@BrunoGiubilei

Im try to configure nav using fish shell wrap, but dont works. Have support to fish shell yet?

Step by step of my test:

  1. Download the binary
  2. Copy the binary to /usr/bin/
  3. run
    nav --setup
  4. copy the wrapper snippet function
  5. Adapted the function for fish instructions
function nav
    if count $argv > /dev/null
        command nav $argv
        return
    end

    set -l dir (env NAV_WRAPPED=1 command nav)

    if test -n "$dir"; and test -d "$dir"
        cd "$dir"
    end
end
  1. run nav pure command
    nav
  2. Get this error
    env: 'command': No such file or directory env: use -[v]S to pass options in shebang lines

OS: Ubuntu 25.10 x86_64
Terminal: alacritty 0.15.1
Shell: fish 4.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions