fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
d835c5252
master
1# localization: tier1 2function export --description'Set env variable. Alias for `set -gx` for bash compatibility.' 3if not set -q argv[ 1 ] 4set -x 5return 0 6end 7for argin $argv 8set -l v( string split -m1 "=" --$arg ) 9set -l value 10switch ( count $v ) 11case 1 12set value$$v [ 1 ] 13case 2 14set value$v [ 2 ] 15end 16set -gx$v [ 1 ] $value 17end 18end