BREAK: remove shell autocompletion and default to /bin/sh
This commit is contained in:
parent
5179d46d47
commit
1ca8d03279
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
## for civil use only
|
||||
|
||||
docker-enter() {
|
||||
docker exec -it $1 ${2:-"/bin/bash"}
|
||||
docker exec -it $1 /bin/sh
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue