Skip to content

Instantly share code, notes, and snippets.



Created Mar 16, 2018
What would you like to do?
Go inside docker container with same bash column height and width
docker exec -it $1 bash -c "stty cols $COLUMNS rows $LINES && bash";
COMPREPLY=( $(docker ps --format "{{.Names}}" -f name=$2) )
export -f goinside
export -f _goinside
complete -F _goinside goinside
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment