mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
updating docker bug, need to do PR
This commit is contained in:
parent
a84a0332a8
commit
1b6b574ff0
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ fi
|
|||
# docker version returns `Docker version 24.0.2, build cb74dfcd85`
|
||||
# with `s:,:` remove the comma after the version, and select third word of it
|
||||
if zstyle -t ':omz:plugins:docker' legacy-completion || \
|
||||
! is-at-least 23.0.0 ${${(s:,:z)"$(command docker --version)"}[3]}; then
|
||||
! is-at-least 23.0.0 ${${(s:,:z)"$(command docker --version 2>/dev/null)"}[3]}; then
|
||||
command cp "${0:h}/completions/_docker" "$ZSH_CACHE_DIR/completions/_docker"
|
||||
else
|
||||
command docker completion zsh | tee "$ZSH_CACHE_DIR/completions/_docker" > /dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue