mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Add horcrux completion (#9922)
* feat(completions): horcrux
* feat(changelog): mention completion
* fix(completion): condition for -n
(cherry picked from commit f9d21cc21d
)
This commit is contained in:
parent
7a60613b79
commit
c8177bdd30
1 changed files with 8 additions and 0 deletions
8
share/completions/horcrux.fish
Normal file
8
share/completions/horcrux.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
set -l subcommands 'bind split'
|
||||
set -l subcommand_show_condition "not __fish_seen_subcommand_from $subcommands"
|
||||
set -l split_option_show_condition "__fish_seen_subcommand_from split"
|
||||
|
||||
complete -c horcrux -a bind -n "$subcommand_show_condition" -f -d 'Bind directory'
|
||||
complete -c horcrux -a split -n "$subcommand_show_condition" -f -d 'Split file'
|
||||
complete -c horcrux -s n -r -n "$split_option_show_condition" -d 'Count of horcruxes to make'
|
||||
complete -c horcrux -s t -r -n "$split_option_show_condition" -d 'Count of horcruxes required to resurrect the original file'
|
Loading…
Reference in a new issue