File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function _bash_completions_fetch_supported_commands {
63
63
setopt extended_glob typeset_silent no_short_loops
64
64
unsetopt nomatch
65
65
66
- local bash_completions=${ZSH_BASH_COMPLETIONS_FALLBACK_PATH:-/ usr/ share/ bash-completion}
66
+ local bash_completions=${ZSH_BASH_COMPLETIONS_FALLBACK_PATH:- ${ ${( @ s /:/ ) ${XDG_DATA_DIRS :-/ usr/ share} } [1]} / bash-completion}
67
67
local -a dirs=(
68
68
${BASH_COMPLETION_USER_DIR:- ${XDG_DATA_HOME:- $HOME / .local/ share} / bash-completion} /completions
69
69
)
@@ -91,7 +91,7 @@ function _bash_completions_fetch_supported_commands {
91
91
}
92
92
93
93
function _bash_completions_load {
94
- local bash_completions=${ZSH_BASH_COMPLETIONS_FALLBACK_PATH:-/ usr/ share/ bash-completion}
94
+ local bash_completions=${ZSH_BASH_COMPLETIONS_FALLBACK_PATH:- ${ ${( @ s /:/ ) ${XDG_DATA_DIRS :-/ usr/ share} } [1]} / bash-completion}
95
95
local reserved_words=(
96
96
" do"
97
97
" done"
You can’t perform that action at this time.
0 commit comments