mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Create basic completions always.
This commit is contained in:
parent
487349d244
commit
1f2941ac1d
1 changed files with 12 additions and 12 deletions
24
fisher.fish
24
fisher.fish
|
@ -15,7 +15,7 @@ function fisher
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
set -g fisher_version "2.6.17"
|
set -g fisher_version "2.6.18"
|
||||||
set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏
|
set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏
|
||||||
|
|
||||||
function __fisher_show_spinner
|
function __fisher_show_spinner
|
||||||
|
@ -1719,6 +1719,17 @@ end
|
||||||
|
|
||||||
|
|
||||||
function __fisher_complete
|
function __fisher_complete
|
||||||
|
complete -xc fisher -n "__fish_use_subcommand" -a install -d "Install plugins"
|
||||||
|
complete -xc fisher -n "__fish_use_subcommand" -a update -d "Update plugins and self"
|
||||||
|
complete -xc fisher -n "__fish_use_subcommand" -a rm -d "Remove plugins"
|
||||||
|
complete -xc fisher -n "__fish_use_subcommand" -a ls -d "List what you've installed"
|
||||||
|
complete -xc fisher -n "__fish_use_subcommand" -a ls-remote -d "List everything that's available"
|
||||||
|
complete -xc fisher -n "__fish_use_subcommand" -a help -d "Show help"
|
||||||
|
|
||||||
|
complete -xc fisher -n "__fish_use_subcommand" -s h -l help -d "Show usage help"
|
||||||
|
complete -xc fisher -n "__fish_use_subcommand" -s v -l version -d "Show version information"
|
||||||
|
complete -xc fisher -s q -l quiet -d "Enable quiet mode"
|
||||||
|
|
||||||
set -l config_glob "$fisher_config"/*
|
set -l config_glob "$fisher_config"/*
|
||||||
set -l config (printf "%s\n" $config_glob | command sed "s|.*/||")
|
set -l config (printf "%s\n" $config_glob | command sed "s|.*/||")
|
||||||
|
|
||||||
|
@ -1774,17 +1785,6 @@ function __fisher_complete
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
complete -xc fisher -n "__fish_use_subcommand" -a install -d "Install plugins"
|
|
||||||
complete -xc fisher -n "__fish_use_subcommand" -a update -d "Update plugins and self"
|
|
||||||
complete -xc fisher -n "__fish_use_subcommand" -a rm -d "Remove plugins"
|
|
||||||
complete -xc fisher -n "__fish_use_subcommand" -a ls -d "List what you've installed"
|
|
||||||
complete -xc fisher -n "__fish_use_subcommand" -a ls-remote -d "List everything that's available"
|
|
||||||
complete -xc fisher -n "__fish_use_subcommand" -a help -d "Show help"
|
|
||||||
|
|
||||||
complete -xc fisher -n "__fish_use_subcommand" -s h -l help -d "Show usage help"
|
|
||||||
complete -xc fisher -n "__fish_use_subcommand" -s v -l version -d "Show version information"
|
|
||||||
complete -xc fisher -s q -l quiet -d "Enable quiet mode"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue