add function to source .env files in fish

This commit is contained in:
Alexander Navarro 2025-11-26 10:05:55 -03:00
parent 0c60392b1f
commit fc134591c2

View file

@ -0,0 +1,7 @@
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