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
fe4b5659
Unverified
Commit
fe4b5659
authored
Jun 30, 2023
by
Carlo Sala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(docker): only load old completion if docker <23
parent
54779e52
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
_docker
plugins/docker/completions/_docker
+0
-0
docker.plugin.zsh
plugins/docker/docker.plugin.zsh
+7
-0
No files found.
plugins/docker/_docker
→
plugins/docker/
completions/
_docker
View file @
fe4b5659
File moved
plugins/docker/docker.plugin.zsh
View file @
fe4b5659
...
@@ -36,6 +36,11 @@ if (( ! $+commands[docker] )); then
...
@@ -36,6 +36,11 @@ if (( ! $+commands[docker] )); then
return
return
fi
fi
# Standarized $0 handling
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
0
=
"
${${
ZERO
:-${
0
:#
$ZSH_ARGZERO
}}:-${
(%)
:-
%N
}}
"
0
=
"
${${
(M)0
:#/
*
}:-
$PWD
/
$0
}
"
{
{
# docker version returns `Docker version 24.0.2, build cb74dfcd85`
# docker version returns `Docker version 24.0.2, build cb74dfcd85`
# with `s:,:` remove the comma after the version, and select third word of it
# with `s:,:` remove the comma after the version, and select third word of it
...
@@ -50,5 +55,7 @@ fi
...
@@ -50,5 +55,7 @@ fi
_comps[docker]
=
_docker
_comps[docker]
=
_docker
fi
fi
command
docker completion zsh
>
|
"
$ZSH_CACHE_DIR
/completions/_docker"
command
docker completion zsh
>
|
"
$ZSH_CACHE_DIR
/completions/_docker"
else
command cp
"
${
0
:h
}
/completions/_docker"
"
$ZSH_CACHE_DIR
/completions/_docker"
fi
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