mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 22:30:07 +00:00
add dxcbash
custom function
This commit is contained in:
parent
4de8d5d4a3
commit
ae008c0a64
2 changed files with 5 additions and 3 deletions
|
@ -88,5 +88,6 @@ zstyle ':omz:plugins:docker' legacy-completion yes
|
||||||
## Custom functions (pseudo-aliases)
|
## Custom functions (pseudo-aliases)
|
||||||
|
|
||||||
| Name | Function | Description |
|
| Name | Function | Description |
|
||||||
| :---- | :----------------------------------------- | :-------------------------------------------------------- |
|
| :------ | :--------------------------------------------- | :-------------------------------------------------------- |
|
||||||
| dxcsh | `dxcsh() { docker exec -it "$@" /bin/sh }` | Run a interactive shell inside a running docker container |
|
| 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 |
|
||||||
|
|
|
@ -41,6 +41,7 @@ alias dxc='docker container exec'
|
||||||
alias dxcit='docker container exec -it'
|
alias dxcit='docker container exec -it'
|
||||||
|
|
||||||
dxcsh() { docker exec -it "$@" /bin/sh }
|
dxcsh() { docker exec -it "$@" /bin/sh }
|
||||||
|
dxcbash() { docker exec -it "$@" /bin/bash }
|
||||||
|
|
||||||
if (( ! $+commands[docker] )); then
|
if (( ! $+commands[docker] )); then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue