diff --git a/.devcontainer/bash_history b/.devcontainer/bash_history new file mode 100644 index 00000000..461833e8 --- /dev/null +++ b/.devcontainer/bash_history @@ -0,0 +1,5 @@ +./vendor/bin/php-cs-fixer fix && ./vendor/bin/phpunit --config tests/phpunit.xml && ./vendor/bin/phpstan analyse --memory-limit 1G -c tests/phpstan.neon +./vendor/bin/php-cs-fixer fix +./vendor/bin/phpunit --config tests/phpunit.xml +./vendor/bin/phpstan analyse --memory-limit 1G -c tests/phpstan.neon +php ./.docker/run.php diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6f487596..fb1ad12f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -22,12 +22,13 @@ "onAutoForward": "silent" }, - "updateContentCommand": "composer install", + "updateContentCommand": "composer install && cp ./.devcontainer/bash_history /root/.bash_history", "postCreateCommand": "./.docker/entrypoint.sh php ./.docker/run.php", "containerEnv": { "UID": "2000", "GID": "2000", - "INSTALL_DSN": "sqlite:data/shimmie.dev.sqlite" + "INSTALL_DSN": "sqlite:data/shimmie.dev.sqlite", + "HISTFILE": "/root/.bash_history" }, "customizations": { "vscode": {