Skip to content

Commit

Permalink
Pass through host's terminal columns and lines
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Apr 27, 2018
1 parent 390d6f6 commit 85525e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ps:
@docker ps --filter name='$(PROJECT_NAME)*'

shell:
docker exec -ti $(shell docker ps --filter name='$(PROJECT_NAME)_php' --format "{{ .ID }}") sh
docker exec -ti -e COLUMNS=$(shell tput cols) -e LINES=$(shell tput lines) $(shell docker ps --filter name='$(PROJECT_NAME)_php' --format "{{ .ID }}") sh

wp:
docker exec $(shell docker ps --filter name='$(PROJECT_NAME)_php' --format "{{ .ID }}") wp --path=$(WP_ROOT) $(filter-out $@,$(MAKECMDGOALS))
Expand Down

0 comments on commit 85525e3

Please sign in to comment.