From 550c75dc2f9ae62708b0e2e13dae68927c0c2983 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Sat, 15 Oct 2016 14:40:45 +0900 Subject: [PATCH] Make sure fisher_cmd_name is set anyway. Related #339. --- fisher.fish | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fisher.fish b/fisher.fish index 9ade10e..04a4821 100644 --- a/fisher.fish +++ b/fisher.fish @@ -1,20 +1,18 @@ if not set -q fisher_cmd_name status --current-filename | command awk ' - { - cmd = "fisher" - if (n = split($0, parts, "/")) { gsub(/\.fish$/, "", parts[n]) print(parts[n]) } - - print(cmd) } - ' | read -gx fisher_cmd_name end +if test -z "$fisher_cmd_name" + set -gx fisher_cmd_name "fisher" +end + function $fisher_cmd_name -d "fish plugin manager" switch "$FISH_VERSION" case 2.1.2 2.1.1 2.1.0 2.0.0