Skip to content

Commit e2af029

Browse files
committed
fix: override more functions to support more commands
Signed-off-by: wxiwnd <[email protected]>
1 parent 5cf3216 commit e2af029

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/bash_pinyin_completion

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ fi
1212

1313
eval "function __bak_comp_compgen_filedir() { $(declare -f _comp_compgen_filedir | tail -n +2) }"
1414
eval "function __bak_comp_compgen_filedir_xspec() { $(declare -f _comp_compgen_filedir_xspec | tail -n +2) }"
15+
eval "function __bak_comp_complete_minimal() { $(declare -f _comp_complete_minimal | tail -n +2) }"
16+
eval "function __bak_comp_expand_glob() { $(declare -f _comp_expand_glob | tail -n +2) }"
1517

1618
# replace _comp_compgen_filedir
1719
_comp_compgen_filedir() {
@@ -24,6 +26,16 @@ _comp_compgen_filedir_xspec() {
2426
_pinyin_completion "$@"
2527
}
2628

29+
_comp_complete_minimal() {
30+
__bak_comp_complete_minimal "$@"
31+
_pinyin_completion "$@"
32+
}
33+
34+
_comp_expand_glob() {
35+
__bak_comp_expand_glob "$@"
36+
_pinyin_completion "$@"
37+
}
38+
2739
_pinyin_completion() {
2840
local cur="${COMP_WORDS[COMP_CWORD]}"
2941

0 commit comments

Comments
 (0)