Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
9e5f0f0e
Commit
9e5f0f0e
authored
Dec 18, 2014
by
Paul van den Berg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added exec command to docker plugin
parent
1978a092
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
_docker
plugins/docker/_docker
+12
-0
No files found.
plugins/docker/_docker
View file @
9e5f0f0e
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
# Requires: Docker installed
# Requires: Docker installed
# Author: Azaan (@aeonazaan)
# Author: Azaan (@aeonazaan)
# Updates: Bob Maerten (@bobmaerten) for Docker v0.9+
# Updates: Bob Maerten (@bobmaerten) for Docker v0.9+
# Paul van den Berg (@bergvandenp) for Docker v1.3+
# ----- Helper functions
# ----- Helper functions
...
@@ -238,6 +239,14 @@ __wait() {
...
@@ -238,6 +239,14 @@ __wait() {
__docker_containers
__docker_containers
}
}
__exec() {
_arguments \
'(-d,--detach=)'{-d,--detach=}'[Detached mode: run command in the background]' \
'(-i,--interactive=)'{-i,--interactive=}'[Keep STDIN open even if not attached]' \
'(-t,--tty=)'{-t,--tty=}'[Allocate a pseudo-TTY]'
__docker_containers
}
# end commands ---------
# end commands ---------
# ----------------------
# ----------------------
...
@@ -276,6 +285,7 @@ _1st_arguments=(
...
@@ -276,6 +285,7 @@ _1st_arguments=(
"top":"Lookup the running processes of a container"
"top":"Lookup the running processes of a container"
"version":"Show the docker version information"
"version":"Show the docker version information"
"wait":"Block until a container stops, then print its exit code"
"wait":"Block until a container stops, then print its exit code"
"exec":"Run a task inside a running container"
)
)
_arguments '*:: :->command'
_arguments '*:: :->command'
...
@@ -353,4 +363,6 @@ case "$words[1]" in
...
@@ -353,4 +363,6 @@ case "$words[1]" in
__version ;;
__version ;;
wait)
wait)
__wait ;;
__wait ;;
exec)
__exec ;;
esac
esac
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