summaryrefslogtreecommitdiff
path: root/completions/bash/podman
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-01-02 16:29:43 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-08 19:12:17 +0000
commit7b08aa78e4ede4c54fda6cd9917bb62e18d0d634 (patch)
tree1c480d9dfb8db3268dc3fdcca827792278a3ae47 /completions/bash/podman
parent6baf6e461de6e560cc48d35239e7c392bec4481c (diff)
downloadpodman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.tar.gz
podman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.tar.bz2
podman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.zip
Shortcut for most recent container
It is desirable to have a shortcut for the most recently created container. We can now use "**latest" to represent the most recent container instead of its container ID or name. For example: Signed-off-by: baude <bbaude@redhat.com> Closes: #179 Approved by: baude
Diffstat (limited to 'completions/bash/podman')
-rw-r--r--completions/bash/podman30
1 files changed, 26 insertions, 4 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index abb629bc9..a552f19d1 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -653,7 +653,10 @@ _podman_attach() {
local boolean_options="
--help
-h
- --no-stdin"
+ --latest
+ -l
+ --no-stdin
+ "
_complete_ "$options_with_args" "$boolean_options"
}
@@ -752,6 +755,8 @@ _podman_exec() {
-u
"
local boolean_options="
+ --latest
+ -l
--privileged
--tty
-t
@@ -875,6 +880,8 @@ _podman_inspect() {
local boolean_options="
--help
-h
+ --latest
+ -l
"
local options_with_args="
--format
@@ -898,7 +905,10 @@ _podman_kill() {
"
local boolean_options="
--help
- -h"
+ -h
+ --latest
+ -l
+ "
_complete_ "$options_with_args" "$boolean_options"
}
@@ -910,6 +920,8 @@ _podman_logs() {
local boolean_options="
--follow
-f
+ --latest
+ -l
"
_complete_ "$options_with_args" "$boolean_options"
@@ -1286,6 +1298,8 @@ _podman_rm() {
-a
--force
-f
+ --latest
+ -l
"
local options_with_args="
@@ -1355,6 +1369,10 @@ podman_top() {
local options_with_args="
"
local boolean_options="
+ --help
+ -h
+ --latest
+ -l
"
_complete_ "$options_with_args" "$boolean_options"
}
@@ -1424,7 +1442,9 @@ _podman_start() {
-a
--attach
-i
- --interactive"
+ --interactive
+ --latest
+ -l"
_complete_ "$options_with_args" "$boolean_options"
}
_podman_stop() {
@@ -1433,7 +1453,9 @@ _podman_stop() {
"
local boolean_options="
--all
- -a"
+ -a
+ --latest
+ -l"
_complete_ "$options_with_args" "$boolean_options"
}