mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Add fish version check, exit if too low. Thanks @msikma.
This commit is contained in:
parent
b3f4e95b38
commit
13b3fcec75
1 changed files with 16 additions and 0 deletions
16
fisher.fish
16
fisher.fish
|
@ -1,4 +1,20 @@
|
|||
function fisher
|
||||
switch "$FISH_VERSION"
|
||||
case 2.1.2 2.1.1 2.1.0 2.0.0
|
||||
__fisher_log error "You need fish @2.2.0@ or higher to use fisherman."
|
||||
|
||||
if command -s brew > /dev/null
|
||||
__fisher_log info "Run @brew up; brew upgrade --HEAD fish@"
|
||||
else
|
||||
__fisher_log info "
|
||||
Refer to your package manager documentation for
|
||||
instructions on how to upgrade your fish build.
|
||||
"
|
||||
end
|
||||
|
||||
return 1
|
||||
end
|
||||
|
||||
set -g fisher_version "2.6.11"
|
||||
set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏
|
||||
|
||||
|
|
Loading…
Reference in a new issue