From d5869a7ea0ac0976ce30884b8212220299030f07 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Thu, 2 Jun 2016 18:48:03 +0900 Subject: [PATCH] Fix incorrect dep fetch. Close #306. * Add support to fish-theme-* and fish-plugin-* repo names, otherwise fisherman would end up trying to install the unknown dependencies. * Remove support for using `:' as a git tag delimiter when installing plugins as that was causing full URLs to be parsed incorrectly. --- fisher.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fisher.fish b/fisher.fish index 3ab9539..d91a999 100644 --- a/fisher.fish +++ b/fisher.fish @@ -479,7 +479,7 @@ function __fisher_plugin_fetch_items end case \* - printf "%s\n" "$i" | sed 's/[@:]\(.*\)/ \1/' | read i branch + printf "%s\n" "$i" | sed 's/[@]\(.*\)/ \1/' | read i branch set names (__fisher_plugin_get_names "$i") end @@ -1606,7 +1606,7 @@ function __fisher_plugin_get_names { sub(/\/$/, "") n = split($0, s, "/") - sub(/^(omf|omf-theme|omf-plugin|plugin|theme|fish|fisher)-/, "", s[n]) + sub(/^(omf|omf-theme|omf-plugin|plugin|theme|fish|fisher|fish-plugin|fish-theme)-/, "", s[n]) printf("%s\n%s\n", s[n], s[n - 1]) }