if status --is-login
    eval (brew shellenv)
    for py_version in 3.9 3.8 3.7
        set PATH $PATH $HOMEBREW_PREFIX/opt/python@$py_version/bin
    end

    # Volta <https://volta.sh>
    set -x VOLTA_HOME $HOME/.volta
    set PATH $VOLTA_HOME/bin $PATH

    # Cargo
    set PATH $HOME/.cargo/bin $PATH

    # shivs
    set PATH $HOME/.local/bin $PATH

    # scripts
    set PATH $PATH $HOME/bin

    set -x PATH $PATH
end

if status --is-login
    set -gx HOMEBREW_PREFIX (brew --prefix)

    for py_version in 3.9 3.8 3.7
        fish_add_path --append $HOMEBREW_PREFIX/opt/python@$py_version/bin
    end

    # Volta <https://volta.sh>
    set -x VOLTA_HOME $HOME/.volta
    fish_add_path --prepend $VOLTA_HOME/bin

    # Cargo
    fish_add_path --prepend $HOME/.cargo/bin

    # shivs
    fish_add_path --prepend $HOME/.local/bin

    # scripts
    fish_add_path --append $HOME/bin
end

Use fish_add_path to manage $PATH
Use fish_add_path to manage $PATH

This is available on `master` and will be part of 3.2.0.

https://github.com/fish-shell/fish-shell/pull/7028

rouge8/dotfiles,rouge8/dotfiles,rouge8/dotfiles