From 585787d60e0fc48de81b2567f630ea51e78df04b Mon Sep 17 00:00:00 2001 From: Francisco Lourenco Date: Fri, 10 Feb 2017 18:52:38 +0100 Subject: [PATCH] Add notice about fish <2.3.0 and snippet support --- fisher.fish | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/fisher.fish b/fisher.fish index 48d6f5c..0761337 100644 --- a/fisher.fish +++ b/fisher.fish @@ -28,6 +28,30 @@ function $fisher_cmd_name -d "fish plugin manager" end return 1 + + case 2.2.0 + __fisher_log info " + You need fish 2.3.0 or higher to take advantage of snippets. + Without it some plugins might not work. + " + + if type -q brew + __fisher_log info "Please run &brew upgrade fish&" + else + __fisher_log info " + + Refer to your package manager documentation + for instructions on how to upgrade your fish build. + + If you can not upgrade, append the following code + to your ~/.config/fish/config.fish: + + &for file in ~/.config/fish/conf.d/*.fish& + &source $file& + &end& + + " + end end set -g fisher_version "2.12.0"