dotfiles/files/fish/functions/posix-source.fish

9 lines
187 B
Fish
Raw Normal View History

2022-05-25 14:38:43 +00:00
function posix-source
for i in (cat $argv)
if test (echo $i | sed -E 's/^[[:space:]]*(.).+$/\\1/g') != "#"
set arr (string split -m1 = $i)
set -gx $arr[1] $arr[2]
end
end
end