Skip to content

Commit

Permalink
Pass through host's terminal columns and lines #273
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Apr 27, 2018
1 parent 4194481 commit 3c05085
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

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

0 comments on commit 3c05085

Please sign in to comment.