Skip to content

Instantly share code, notes, and snippets.

@dreampuf
Last active October 9, 2021 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreampuf/a8e1b0d42072cba908b3fe4db87f7f73 to your computer and use it in GitHub Desktop.
Save dreampuf/a8e1b0d42072cba908b3fe4db87f7f73 to your computer and use it in GitHub Desktop.
Bootstrap_develop_environment.sh
#!/usr/bin/env bash
# Install Homebrew first
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# If you need a mirror repo (in case you are in China)
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
git clone https://mirrors.ustc.edu.cn/homebrew-core.git "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git clone https://mirrors.ustc.edu.cn/homebrew-cask.git "$(brew --repo homebrew/cask)"
git clone https://mirrors.ustc.edu.cn/homebrew-cask-versions.git "$(brew --repo)/Library/Taps/homebrew/homebrew-cask-versions"
cat >> ~/.zshrc <<<EOF
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
EOF
# Basic development tools
brew install pyenv awscli pyenv-virtualenv go google-chrome jetbrains-toolbox onedrive dash homebrew/cask-versions/1password6 evernote docker paw slack youdaodict surge iterm2
# pyenv setup
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
#/bin/bash
cd ~
tar -cz .aws .bash_profile .gitconfig .tmux.config .ssh .kube .vimrc | gzip > ~/Downloads/profile.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment