mirror of
https://github.com/cupcakearmy/dotfiles.git
synced 2024-11-01 04:54:10 +01:00
9 lines
187 B
Fish
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
|