mirror of https://github.com/docker/cli.git
remove duplicate container fish completion
Signed-off-by: Tin Lai <oscar@tinyiu.com>
This commit is contained in:
parent
8f14db8df2
commit
cac9973955
|
@ -26,16 +26,16 @@ end
|
||||||
function __fish_print_docker_containers --description 'Print a list of docker containers' -a select
|
function __fish_print_docker_containers --description 'Print a list of docker containers' -a select
|
||||||
switch $select
|
switch $select
|
||||||
case running
|
case running
|
||||||
docker ps -a --no-trunc --filter status=running --format "{{.ID}}\n{{.Names}}" | tr ',' '\n'
|
docker ps -a --no-trunc --filter status=running --format "{{.ID}}\t{{.Names}}" | tr ',' '\n'
|
||||||
case stopped
|
case stopped
|
||||||
docker ps -a --no-trunc --filter status=exited --format "{{.ID}}\n{{.Names}}" | tr ',' '\n'
|
docker ps -a --no-trunc --filter status=exited --format "{{.ID}}\t{{.Names}}" | tr ',' '\n'
|
||||||
case all
|
case all
|
||||||
docker ps -a --no-trunc --format "{{.ID}}\n{{.Names}}" | tr ',' '\n'
|
docker ps -a --no-trunc --format "{{.ID}}\t{{.Names}}" | tr ',' '\n'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fish_print_docker_networks --description 'Print a list of docker networks'
|
function __fish_print_docker_networks --description 'Print a list of docker networks'
|
||||||
docker network ls --format "{{.ID}}\n{{.Name}}" | tr ',' '\n'
|
docker network ls --format "{{.ID}}\t{{.Name}}" | tr ',' '\n'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue