Skip to content

Instantly share code, notes, and snippets.

@oehrlis
Last active March 1, 2022 15:41
Show Gist options
  • Save oehrlis/90e410f0224c1e2b74759277023aa179 to your computer and use it in GitHub Desktop.
Save oehrlis/90e410f0224c1e2b74759277023aa179 to your computer and use it in GitHub Desktop.

Simple alias to execute base in docker container with some terminal settings

alias deo='function _deo() { if [ -n "${1}" ]; then docker exec -e COLUMNS="`tput cols`" -e LINES="`tput lines`" -it -u oracle ${1} bash --login; else echo "No docker container specified"; fi } ; _deo'
alias der='function _der() { if [ -n "${1}" ]; then docker exec -e COLUMNS="`tput cols`" -e LINES="`tput lines`" -it -u root ${1} bash --login; else echo "No docker container specified"; fi } ; _deo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment