dotfiles/files/fish/functions/posix-source.fish
Niccolo Borgioli c7cb6f1f19
posix source
2022-05-25 16:38:43 +02:00

9 lines
187 B
Fish

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