mirror of
https://github.com/cupcakearmy/dotfiles.git
synced 2024-12-22 00:06:32 +00:00
posix source
This commit is contained in:
parent
f0dc8094bf
commit
c7cb6f1f19
8
files/fish/functions/posix-source.fish
Normal file
8
files/fish/functions/posix-source.fish
Normal 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
|
Loading…
Reference in New Issue
Block a user