diff --git a/share/functions/export.fish b/share/functions/export.fish index 0c5561291..d0d1bbb2b 100644 --- a/share/functions/export.fish +++ b/share/functions/export.fish @@ -1,5 +1,5 @@ function export --description 'Set env variable. Alias for `set -gx` for bash compatibility.' - if not set -q argv[0] + if not set -q argv[1] set -x return 0 end diff --git a/share/functions/setenv.fish b/share/functions/setenv.fish index 2141f4dad..d125751bd 100644 --- a/share/functions/setenv.fish +++ b/share/functions/setenv.fish @@ -1,5 +1,5 @@ function setenv --description 'Set env variable. Alias for `set -gx` for csh compatibility.' - if not set -q argv[0] + if not set -q argv[1] set -x return 0 end