From eab5c67f0b709dee051ac3e9ca0d51c071f712e0 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Fri, 13 Nov 2020 19:47:25 +0900 Subject: [PATCH] Phase out rm --- fisher.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fisher.fish b/fisher.fish index 008d17b..c79c60d 100644 --- a/fisher.fish +++ b/fisher.fish @@ -18,7 +18,7 @@ function fisher -a cmd -d "fish plugin manager" echo " -h or --help print this help message" case ls list string match --entire --regex -- "$argv[2]" $_fisher_plugins - case install update remove rm + case install update remove isatty || read -laz stdin && set -a argv $stdin set -l install_plugins set -l update_plugins @@ -42,10 +42,10 @@ function fisher -a cmd -d "fish plugin manager" if set -q argv[2] for plugin in $new_plugins if contains -- "$plugin" $old_plugins - if test "$cmd" = install || test "$cmd" = update - set -a update_plugins $plugin - else + if test "$cmd" = remove set -a remove_plugins $plugin + else + set -a update_plugins $plugin end else if test "$cmd" != install echo "fisher: plugin not installed: \"$plugin\"" >&2 && return 1