diff --git a/template/.devcontainer/post_create.sh b/template/.devcontainer/post_create.sh index 233ce4a..97c374d 100644 --- a/template/.devcontainer/post_create.sh +++ b/template/.devcontainer/post_create.sh @@ -1,11 +1,16 @@ set -e +# Zsh as default terminal +chsh -s $(which zsh) + +# Github CLI curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ && chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ && apt update \ && apt install gh -y +# Node export NVM_DIR="$HOME/.nvm" mkdir -p $NVM_DIR export NODE_VERSION="18.2.0" @@ -17,11 +22,12 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash export NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules export PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH - echo 'export PATH="$PATH:$HOME/.nvm/versions/node/v18.2.0/bin:PATH"' >> ~/.zshrc +# Graphite npm install -g @withgraphite/graphite-cli@stable +# Lefthook curl -1sLf 'https://dl.cloudsmith.io/public/evilmartians/lefthook/setup.deb.sh' | bash apt install lefthook lefthook install \ No newline at end of file