mirror of https://github.com/jorgebucaran/fisher
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
505 B
Fish
24 lines
505 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
|
|
}
|
|
}
|
|
|
|
/@http/ {
|
|
gsub("@.*$", "", $1)
|
|
}
|
|
|
|
!/^[ \t]*(#.*)*$/ {
|
|
gsub("^[@*>]|#.*", "")
|
|
|
|
if (! seen[$1]++) {
|
|
printf("%s\n", $1)
|
|
}
|
|
}
|
|
'
|
|
end
|