fix: auto-loading .env is not ideal
This commit is contained in:
parent
e7bc71f448
commit
62829ef995
|
@ -92,16 +92,19 @@ if status is-interactive
|
|||
if string match -q "'*" $pair[2]; or string match -q '"*' $pair[2]
|
||||
eval "set -gx $pair[1] $pair[2]"
|
||||
else
|
||||
eval "set -gx $pair[1] \"$pair[2]\""
|
||||
if not eval "export $pair[1]=\"$pair[2]\""
|
||||
echo failed to export pair $pair
|
||||
return
|
||||
end
|
||||
end
|
||||
end < $argv[1]
|
||||
end
|
||||
|
||||
function readenv --on-variable PWD
|
||||
if test -r .env
|
||||
loadenv .env
|
||||
end
|
||||
end
|
||||
readenv
|
||||
#function readenv --on-variable PWD
|
||||
#if test -r .env
|
||||
#loadenv .env
|
||||
#end
|
||||
#end
|
||||
#readenv
|
||||
end
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
},
|
||||
"coc.preferences.formatOnSaveFiletypes": [
|
||||
"rust",
|
||||
"json",
|
||||
"go"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user