mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
parent
635e714bb4
commit
1ef310c3a8
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ function export --description 'Set env variable. Alias for `set -gx` for bash co
|
||||||
set -l colonized_path (string replace -- "$$v[1]" (string join ":" -- $$v[1]) $v[2])
|
set -l colonized_path (string replace -- "$$v[1]" (string join ":" -- $$v[1]) $v[2])
|
||||||
set -gx $v[1] (string split ":" -- $colonized_path)
|
set -gx $v[1] (string split ":" -- $colonized_path)
|
||||||
else
|
else
|
||||||
|
# status is 1 from the contains check, and `set` does not change the status on success: reset it.
|
||||||
|
true
|
||||||
set -gx $v[1] $v[2]
|
set -gx $v[1] $v[2]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue