mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
completions/abbr: fix complete condition
- fix complete condition - add short flag the conditions are not include short flags currently. and conditions are not right, causing the complete to not work as expected.
This commit is contained in:
parent
53505c89dd
commit
57bcbfa863
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# "add" is implicit.
|
||||
set __fish_abbr_not_add_cond '__fish_seen_subcommand_from --query --rename --erase --show --list --help'
|
||||
set __fish_abbr_add_cond 'not __fish_seen_subcommand_from --query --rename --erase --show --list --help'
|
||||
set __fish_abbr_not_add_cond 'not __fish_seen_subcommand_from -a --add'
|
||||
set __fish_abbr_add_cond 'not __fish_seen_subcommand_from -q --query --rename -e --erase -s --show -l --list -h --help'
|
||||
|
||||
complete -c abbr -f
|
||||
complete -c abbr -f -n $__fish_abbr_not_add_cond -s a -l add -d 'Add abbreviation'
|
||||
|
|
Loading…
Reference in a new issue