mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
parent
85522036f5
commit
cc54917efa
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ function fish_add_path --description "Add paths to the PATH"
|
|||
end
|
||||
|
||||
set -l var fish_user_paths
|
||||
set -q _flag_path; and set var PATH
|
||||
set -q _flag_path
|
||||
and set var PATH
|
||||
# $PATH should be global
|
||||
and set scope -g
|
||||
set -l mode $_flag_prepend $_flag_append
|
||||
set -q mode[1]; or set mode -p
|
||||
|
||||
|
|
Loading…
Reference in a new issue