Last active
October 9, 2021 10:04
-
-
Save dreampuf/a8e1b0d42072cba908b3fe4db87f7f73 to your computer and use it in GitHub Desktop.
Bootstrap_develop_environment.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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