From 57bcbfa8630de051d6a973f04b270aa0beccf69d Mon Sep 17 00:00:00 2001 From: Akatsuki Rui <3736910+akiirui@users.noreply.github.com> Date: Thu, 29 Dec 2022 20:16:25 +0800 Subject: [PATCH] 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. --- share/completions/abbr.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/abbr.fish b/share/completions/abbr.fish index 9a92fa968..87051769b 100644 --- a/share/completions/abbr.fish +++ b/share/completions/abbr.fish @@ -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'