export: Fix replacing

Also run it through fish_indent
This commit is contained in:
Fabian Homborg 2015-10-12 11:35:45 +02:00
parent f6f982226a
commit 54f215294f

View file

@ -5,7 +5,8 @@ function export --description 'Set global variable. Alias for set -gx, made for
end end
for arg in $argv for arg in $argv
# Only split on the first = # Only split on the first =
set -l v (echo $arg | string replace "=" "\n") # The literal "\n" is necessary because string doesn't interpret it without -r
set -l v (echo $arg | string replace "=" \n)
set -l c (count $v) set -l c (count $v)
switch $c switch $c
case 1 case 1