dotfiles/config/fish/functions/envsource.fish
2022-08-25 14:52:25 +03:00

7 lines
176 B
Fish

function envsource
for line in (cat $argv | grep -v '^#')
set item (string split -m 1 '=' $line)
set -gx $item[1] $item[2]
echo "Exported key $item[1]"
end
end