From d3352f1563a9abfd02d311458bff90db9a424cec Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 21 Feb 2024 21:56:03 +0000 Subject: [PATCH] [devcontainer] seed shell history --- .devcontainer/bash_history | 5 +++++ .devcontainer/devcontainer.json | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .devcontainer/bash_history 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": {