mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +00:00
22 lines
449 B
Fish
22 lines
449 B
Fish
function __fisher_file
|
|
awk -v FS=\t '
|
|
/^[ \t]*package / {
|
|
gsub("^[ \t]*package ", "https://github.com/oh-my-fish/plugin-")
|
|
printf("%s\n", $0)
|
|
next
|
|
}
|
|
|
|
/@http/ {
|
|
gsub("@.*$", "", $1)
|
|
}
|
|
|
|
!/^[ \t]*(#.*)*$/ {
|
|
gsub("^[@*>]?[ \t]*?|#.*", "")
|
|
|
|
if (! seen[$1]++) {
|
|
printf("%s\n", $1)
|
|
}
|
|
}
|
|
'
|
|
end
|