/usr/share/fish/functions/export.fish is in fish-common 2.2.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | function export --description 'Set global variable. Alias for set -g, made for bash compatibility'
if test -z "$argv"
set
return 0
end
for arg in $argv
set -l v (echo $arg|tr '=' \n)
set -l c (count $v)
switch $c
case 1
set -gx $v $$v
case 2
set -gx $v[1] $v[2]
end
end
end
|