fisher/functions/__fisher_name.fish
Jorge Bucaran 7e4b800b65
Improve __fisher_name name resolution algorithm.
Improve __fisher_name name resolution from paths or URLs
more accurately. Now correctly process names paths such
as fisher-plugin-*, fisher-theme-* and other permutations.
2016-02-25 14:16:39 +09:00

7 lines
137 B
Fish

function __fisher_name
sed -E '
s|.*/(.*)|\1|
s/(plugin|omf-theme|theme|pkg|omf|fish|fisher|fisherman)-//g
'
end