From 1ca8d03279cc505733853ee9078f988d3c9d67e0 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 15 Nov 2018 13:57:34 +0100 Subject: [PATCH] BREAK: remove shell autocompletion and default to /bin/sh --- _docker-enter-completion.zsh | 3 +-- docker-enter.plugin.zsh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 }