Skip to content

Instantly share code, notes, and snippets.

@jzwiep
Last active June 29, 2018 17:23
Show Gist options
  • Save jzwiep/fd3ad70b8fbdbb0982a0d587d3d84412 to your computer and use it in GitHub Desktop.
Save jzwiep/fd3ad70b8fbdbb0982a0d587d3d84412 to your computer and use it in GitHub Desktop.
Setting proper shell width for 'docker-compose exec'
docker-compose exec -e COLUMNS=$(shell tput cols) -e LINES=$(shell tput lines) <container> <command>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment