mirror of
https://github.com/cupcakearmy/dotfiles.git
synced 2024-12-23 08:46:31 +00: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
|