blob: dbcce399fb3b7371d768af63ca1ae31cbeba6d3a (
plain)
1
2
3
4
5
6
7
|
function envsource
for line in (cat $argv | grep -v '^#' | grep -v '^\s*$')
set item (string split -m 1 '=' $line)
set -gx $item[1] (string trim --chars=\'\" $item[2])
echo $item[1]
end
end
|