Skip to content

Commit 2e035ec

Browse files
committed
chore: further simplifications
1 parent 707d59a commit 2e035ec

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.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 & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1+
## set-up yarn's deb registry
2+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
3+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
4+
15
## update and install some things we should probably have
26
apt-get update
3-
apt-get install -y \
7+
apt-get install -y --no-install-recommends \
48
curl \
59
git \
610
jq \
11+
yarn \
712
zsh
813

9-
## set-up and install yarn
10-
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
11-
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
12-
apt-get install yarn -y --no-install-recommends
13-
1414
## instsall nvm
1515
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
1616

17-
## add 'developer' and make them a superusers
18-
useradd -m developer
19-
su developer
20-
2117
## setup and install oh-my-zsh
2218
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
2319
cp -R /root/.oh-my-zsh /home/$USERNAME
2420
cp /root/.zshrc /home/$USERNAME
2521
sed -i -e "s/\/root\/.oh-my-zsh/\/home\/$USERNAME\/.oh-my-zsh/g" /home/$USERNAME/.zshrc
26-
chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrcs
22+
chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrcsx`

0 commit comments

Comments
 (0)