Skip to content

Commit 0173d7d

Browse files
authored
Merge pull request #1 from cutenode/bnb/improve-setup
chore: Add comments and slightly restructure setup.sh
2 parents 6e0ad6f + e1d2d2c commit 0173d7d

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
"vscode-icons-team.vscode-icons",
1010
"visualstudioexptteam.vscodeintellicode"
1111
],
12-
"dockerFile": "Dockerfile"
12+
"dockerFile": "Dockerfile",
13+
"settings": {
14+
"terminal.integrated.shell.linux": "/usr/bin/zsh"
15+
}
1316
}

.devcontainer/setup.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1+
## update and install some things we should probably have
12
apt-get update
23
apt-get install -y \
34
curl \
45
git \
6+
gnupg2 \
57
jq \
8+
sudo \
69
zsh
710

11+
## set-up and install yarn
812
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
913
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
1014
apt-get install yarn -y --no-install-recommends
1115

12-
useradd -m developer
13-
su developer
16+
## instsall nvm
17+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
1418

19+
## setup and install oh-my-zsh
1520
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
1621
cp -R /root/.oh-my-zsh /home/$USERNAME
1722
cp /root/.zshrc /home/$USERNAME
1823
sed -i -e "s/\/root\/.oh-my-zsh/\/home\/$USERNAME\/.oh-my-zsh/g" /home/$USERNAME/.zshrc
1924
chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrc
20-
21-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

0 commit comments

Comments
 (0)