Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
  • Loading branch information
Ben Ye committed Aug 13, 2022
1 parent 01233f0 commit 421cbca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"dockerFile": "Dockerfile",
"settings": {
"editor.formatOnSave": true,
"terminal.integrated.shell.linux": "/usr/bin/zsh"
"terminal.integrated.shell.linux": "/usr/bin/bash"
}
}
17 changes: 4 additions & 13 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ apt-get install -y \
git \
gnupg2 \
jq \
zsh \
vim \
build-essential \
openssl \
Expand All @@ -15,19 +14,11 @@ apt-get install -y \
## Install rustup and common components
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup install nightly
rustup component add rustfmt
rustup component add rustfmt --toolchain nightly
rustup component add clippy
rustup component add clippy --toolchain nightly
toolchain=$(cat rust-toolchain)
rustup install $toolchain
rustup component add rustfmt --toolchain $toolchain
rustup component add clippy --toolchain $toolchain

cargo install cargo-expand
cargo install cargo-edit
cargo install cargo-nextest

## setup and install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cp -R /root/.oh-my-zsh /home/$USERNAME
cp /root/.zshrc /home/$USERNAME
sed -i -e "s/\/root\/.oh-my-zsh/\/home\/$USERNAME\/.oh-my-zsh/g" /home/$USERNAME/.zshrc
chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrc

0 comments on commit 421cbca

Please sign in to comment.