Skip to content

Commit

Permalink
misc. post_create
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Feb 22, 2024
1 parent 8e0abfe commit 1ca75e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion template/.devcontainer/post_create.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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

0 comments on commit 1ca75e6

Please sign in to comment.