Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
8a6fc5c1
Unverified
Commit
8a6fc5c1
authored
Jun 20, 2023
by
Haltarys
Committed by
GitHub
Jun 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(docker): use `command docker` (#11766)
parent
b5be2d39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docker.plugin.zsh
plugins/docker/docker.plugin.zsh
+2
-2
No files found.
plugins/docker/docker.plugin.zsh
View file @
8a6fc5c1
...
...
@@ -38,7 +38,7 @@ fi
{
# `docker completion` is only available from 23.0.0 on
local
_docker_version
=
$(
docker version
--format
'{{.Client.Version}}'
2>/dev/null
)
local
_docker_version
=
$(
command
docker version
--format
'{{.Client.Version}}'
2>/dev/null
)
if
is-at-least 23.0.0
$_docker_version
;
then
# 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.
...
...
@@ -47,6 +47,6 @@ fi
autoload
-Uz
_docker
_comps[docker]
=
_docker
fi
docker completion zsh
>
|
"
$ZSH_CACHE_DIR
/completions/_docker"
command
docker completion zsh
>
|
"
$ZSH_CACHE_DIR
/completions/_docker"
fi
}
&|
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment