mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
19 lines
443 B
Fish
19 lines
443 B
Fish
function __fisher_file
|
|
awk '
|
|
/^[ \t]*(package|theme) .+/ {
|
|
if ($1 == "package") {
|
|
$1 = "https://github.com/oh-my-fish/plugin-"$2
|
|
} else {
|
|
$1 = "https://github.com/oh-my-fish/theme-"$2
|
|
}
|
|
}
|
|
|
|
!/^[ \t]*(#.*)*$/ {
|
|
gsub("^[|*>]|#.*", "")
|
|
|
|
if (! seen[$1]++) {
|
|
printf("%s\n", $1)
|
|
}
|
|
}
|
|
'
|
|
end
|