Add SHELL variable and update shell command in Makefile
This commit is contained in:
3
Makefile
3
Makefile
@@ -2,6 +2,7 @@ TARGET=thechart
|
||||
VERSION=1.0.0
|
||||
ROOT=/home/will
|
||||
ICON=chart-671.png
|
||||
SHELL=/bin/fish
|
||||
help: ## Show this help
|
||||
@grep -E -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||
install: ## Set up the development environment
|
||||
@@ -46,7 +47,7 @@ attach: ## Open a shell in the container
|
||||
docker-compose exec -it ${TARGET} /bin/bash
|
||||
shell: ## Open a shell in the local environment
|
||||
@echo "Opening a shell in the local environment..."
|
||||
eval (poetry env activate)
|
||||
${SHELL} -c "eval (poetry env activate)"
|
||||
requirements: ## Export the requirements to a file
|
||||
@echo "Exporting requirements to requirements.txt..."
|
||||
poetry export --without-hashes -f requirements.txt -o requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user