BREAK: remove shell autocompletion and default to /bin/sh

This commit is contained in:
Sebastian Mark 2018-11-15 13:57:34 +01:00
parent 5179d46d47
commit 1ca8d03279
2 changed files with 2 additions and 3 deletions

View file

@ -2,11 +2,10 @@
_docker-enter() { _docker-enter() {
local state local state
_arguments -C '1: :->container' '2: :->shell' _arguments -C '1: :->container'
case $state in case $state in
(container) compadd -- $(docker ps --format '{{.Names}}');; (container) compadd -- $(docker ps --format '{{.Names}}');;
(shell) compadd -P /bin/ -- bash sh;;
esac esac
} }

View file

@ -5,6 +5,6 @@
## for civil use only ## for civil use only
docker-enter() { docker-enter() {
docker exec -it $1 ${2:-"/bin/bash"} docker exec -it $1 /bin/sh
} }