mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08: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,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…
x
Reference in New Issue
Block a user