From ae008c0a641e5cc703dc10aa677d78364e6a91bc Mon Sep 17 00:00:00 2001 From: Arsenii Liubogashchinskii Date: Sat, 4 May 2024 22:17:39 +0800 Subject: [PATCH] add `dxcbash` custom function --- plugins/docker/README.md | 7 ++++--- plugins/docker/docker.plugin.zsh | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/docker/README.md b/plugins/docker/README.md index 10a5d6cdf..2e7ab4e96 100644 --- a/plugins/docker/README.md +++ b/plugins/docker/README.md @@ -87,6 +87,7 @@ zstyle ':omz:plugins:docker' legacy-completion yes ## Custom functions (pseudo-aliases) -| Name | Function | Description | -| :---- | :----------------------------------------- | :-------------------------------------------------------- | -| dxcsh | `dxcsh() { docker exec -it "$@" /bin/sh }` | Run a interactive shell inside a running docker container | +| Name | Function | Description | +| :------ | :--------------------------------------------- | :-------------------------------------------------------- | +| dxcsh | `dxcsh() { docker exec -it "$@" /bin/sh }` | Run a interactive shell inside a running docker container | +| dxcbash | `dxcbash() { docker exec -it "$@" /bin/bash }` | Run a interactive bash inside a running docker container | diff --git a/plugins/docker/docker.plugin.zsh b/plugins/docker/docker.plugin.zsh index 37bb07685..96459a031 100644 --- a/plugins/docker/docker.plugin.zsh +++ b/plugins/docker/docker.plugin.zsh @@ -41,6 +41,7 @@ alias dxc='docker container exec' alias dxcit='docker container exec -it' dxcsh() { docker exec -it "$@" /bin/sh } +dxcbash() { docker exec -it "$@" /bin/bash } if (( ! $+commands[docker] )); then return