Skip to content

Commit

Permalink
Refactor (docker): fix geometry on each interactive terminal alias
Browse files Browse the repository at this point in the history
  • Loading branch information
akarzim committed Jan 20, 2019
1 parent f06c62e commit e8964b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions modules/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Defines [Docker][1] aliases and functions.
- `dkCcp` Copy files/folders between a container and the local filesystem
- `dkCd` Inspect changes on a container's filesystem
- `dkCe` Run a command in a running container
- `dkCE` Run an interactive command in a running container
- `dkCin` Display detailed information on one or more containers
- `dkCk` Kill one or more running containers
- `dkCl` Fetch the logs of a container
Expand Down
9 changes: 5 additions & 4 deletions modules/docker/alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ alias dkph='docker push'
alias dkps='docker ps'
alias dkpsa='docker ps -a'
alias dkr='docker run'
alias dkR='docker run -it --rm'
alias dkRe='docker run -it --rm --entrypoint /bin/bash'
alias dkR='docker run -e COLUMNS=`tput cols` -e LINES=`tput lines` -it --rm'
alias dkRe='docker run -e COLUMNS=`tput cols` -e LINES=`tput lines` -it --rm --entrypoint /bin/bash'
alias dkRM='docker system prune'
alias dkrm='docker rm'
alias dkrmi='docker rmi'
Expand All @@ -59,6 +59,7 @@ alias dkCa='docker container attach'
alias dkCcp='docker container cp'
alias dkCd='docker container diff'
alias dkCe='docker container exec'
alias dkCE='docker container exec -e COLUMNS=`tput cols` -e LINES=`tput lines` -it'
alias dkCin='docker container inspect'
alias dkCk='docker container kill'
alias dkCl='docker container logs'
Expand All @@ -70,8 +71,8 @@ alias dkCrn='docker container rename'
alias dkCS='docker container restart'
alias dkCrm='docker container rm'
alias dkCr='docker container run'
alias dkCR='docker container run -it --rm'
alias dkCRe='docker container run -it --rm --entrypoint /bin/bash'
alias dkCR='docker container run -e COLUMNS=`tput cols` -e LINES=`tput lines` -it --rm'
alias dkCRe='docker container run -e COLUMNS=`tput cols` -e LINES=`tput lines` -it --rm --entrypoint /bin/bash'
alias dkCs='docker container start'
alias dkCss='docker container stats'
alias dkCx='docker container stop'
Expand Down

0 comments on commit e8964b0

Please sign in to comment.