mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
fix(docker): create completions directory if it doesn't already exist
Fixes #13679
This commit is contained in:
parent
7c10d9839f
commit
818a9b4e9e
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ fi
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
# If the completion file doesn't exist yet, we need to autoload it and
|
||||||
# bind it to `docker`. Otherwise, compinit will have already done that.
|
# bind it to `docker`. Otherwise, compinit will have already done that.
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_docker" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_docker" ]]; then
|
||||||
|
if [[ ! -f "$ZSH_CACHE_DIR/completions" ]]; then
|
||||||
|
mkdir -p "$ZSH_CACHE_DIR/completions"
|
||||||
|
fi
|
||||||
typeset -g -A _comps
|
typeset -g -A _comps
|
||||||
autoload -Uz _docker
|
autoload -Uz _docker
|
||||||
_comps[docker]=_docker
|
_comps[docker]=_docker
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue