From 69b22066de68f632933ce77819d24c6aa57581fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Felipe=20Gon=C3=A7alves?= Date: Thu, 22 Feb 2024 13:30:32 +0000 Subject: [PATCH] chore(devcontainer): move bun setup step to `post-create.sh` script --- .devcontainer/Dockerfile | 3 --- .devcontainer/post-create.sh | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 0cfd35e..4c86812 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,3 @@ FROM mcr.microsoft.com/devcontainers/base:ubuntu -# Install BUN -RUN curl -fsSL https://bun.sh/install | bash - VOLUME ~/.gitconfig:/home/vscode/.gitconfig diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 7f2ece9..2e5b0b5 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -16,3 +16,7 @@ git config --global alias.cb "checkout -b" git config --global alias.st "status -sb" git config --global alias.lg "log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30" git config --global alias.rollback "reset --soft HEAD~1" + +# Install BUN +curl -fsSL https://bun.sh/install | bash +echo '\n# bun\nexport BUN_INSTALL="$HOME/.bun"\nexport PATH=$BUN_INSTALL/bin:$PATH' >> ~/.zshrc \ No newline at end of file