posix source

This commit is contained in:
Niccolo Borgioli 2022-05-25 16:38:43 +02:00
parent f0dc8094bf
commit c7cb6f1f19
No known key found for this signature in database
GPG Key ID: 9ACAD419A6BEAAAC

View File

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