From f7232b229bc4bd4d0fb6d2587ad5a8b64445cf9f Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 21 Oct 2022 17:30:24 +0900 Subject: [PATCH] add: fish: auto fisher install --- bin/linux/fisher_plugins.fish | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/linux/fisher_plugins.fish b/bin/linux/fisher_plugins.fish index 8e90ab1..1595c1b 100644 --- a/bin/linux/fisher_plugins.fish +++ b/bin/linux/fisher_plugins.fish @@ -7,8 +7,17 @@ # check fisher existence if ! type fisher &>/dev/null echo "fisher does not exist." - echo "Please install fisher." - return 1 + echo "Please install fisher from https://github.com/jorgebucaran/fisher" + echo "" + echo "==Automatic install==" + echo "You can run `curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher` right here" + echo "be sure to check install command on the fisher project homepage." + read -p "echo Install\?(default Y / N):\ " ans + if [ $ans = 'N' ] + return 1 + end + # install script from github page + curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher end fisher update