diff --git a/_docker-enter-completion.zsh b/_docker-enter-completion.zsh index f5ec57f..636f124 100644 --- a/_docker-enter-completion.zsh +++ b/_docker-enter-completion.zsh @@ -2,11 +2,10 @@ _docker-enter() { local state - _arguments -C '1: :->container' '2: :->shell' + _arguments -C '1: :->container' case $state in (container) compadd -- $(docker ps --format '{{.Names}}');; - (shell) compadd -P /bin/ -- bash sh;; esac } diff --git a/docker-enter.plugin.zsh b/docker-enter.plugin.zsh index 31e0d5f..5c9f4d0 100644 --- a/docker-enter.plugin.zsh +++ b/docker-enter.plugin.zsh @@ -5,6 +5,6 @@ ## for civil use only docker-enter() { - docker exec -it $1 ${2:-"/bin/bash"} + docker exec -it $1 /bin/sh }