We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 011b532 commit 43c4fcfCopy full SHA for 43c4fcf
scripts/bash_pinyin_completion
@@ -11,11 +11,20 @@ if ! declare -F _comp_compgen_filedir &>/dev/null; then
11
fi
12
13
eval "function __bak_comp_compgen_filedir() { $(declare -f _comp_compgen_filedir | tail -n +2) }"
14
+eval "function __bak_comp_compgen_filedir_xspec() { $(declare -f _comp_compgen_filedir_xspec | tail -n +2) }"
15
16
# replace _comp_compgen_filedir
17
_comp_compgen_filedir() {
18
__bak_comp_compgen_filedir "$@"
19
+ _pinyin_completion "$@"
20
+}
21
+
22
+_comp_compgen_filedir_xspec() {
23
+ __bak_comp_compgen_filedir_xspec "$@"
24
25
26
27
+_pinyin_completion() {
28
local cur="${COMP_WORDS[COMP_CWORD]}"
29
30
# ignore empty
0 commit comments