Skip to content

Instantly share code, notes, and snippets.

@latel
Last active February 1, 2020 03:46
Show Gist options
  • Save latel/0ce075dbbd47144fc1f3554607749dbd to your computer and use it in GitHub Desktop.
Save latel/0ce075dbbd47144fc1f3554607749dbd to your computer and use it in GitHub Desktop.
MacOS重装系统后快速恢复生产力
# sh -c "$(curl -L https://gist.githubusercontent.com/latel/0ce075dbbd47144fc1f3554607749dbd/raw/)" > install.log
#######run command above to recover #######
# install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# directories used to
mkdir -p ~/codes/playground
mkdir -p ~/codes/stockfe
mkdir -p ~/Documents/Tencent/stockfe
# life
brew cask install calibre
brew cask install google-backup-and-sync
brew cask install folx transmission
brew cask install iina
brew cask install the-unarchiver
brew cask install weiyun
# web
brew cask install shadowsocks-ng
brew cask install google-chrome
brew install you-get
brew cask install things
brew cask install qqmusic
brew cask install wechat
brew cask install qq
brew cask install qqlive
# finance
brew cask install futuniuniu
# mount remotes through ssh
brew cask install osxfuse
brew install sshfs
brew install ssh-copy-id
# video converting
brew install ffmpeg
# code editing
brew install nodejs
brew cask install kaleidoscope
brew cask install dash
brew cask install visual-studio-code
code install-extension gitlens
code install-extension ms-ceintl.vscode-language-pack-zh-hans
code install-extension editorconfig.editorconfig
code install-extension dbaeumer.vscode-eslint
code install-extension drknoxy.eslint-disable-snippets
brew cask install macvim
brew cask install iterm2
brew install lrzsz
brew cask install webstorm
brew cask install wechatwebdevtools
# brew cask install cornerstone
brew cask install tower
# work
brew cask install wxwork
brew cask install omnigraffle
brew cask install macdown
brew cask install microsoft-office
brew cask install tickeys
brew install zsh
brew install zsh-autosuggestions zsh-completions
brew cask install postman
brew cask install microsoft-remote-desktop-beta
brew cask install sequel-pro
brew cask install sketch
brew cask install transmit
brew cask install zeplin
brew cask install proxifier
# better docker-machine driver, see https://yeasy.gitbooks.io/docker_practice/content/machine/usage.html
brew install docker docker-machine-driver-xhyve
# knowledge
brew cask install dropbox
brew cask install boostnote
# utils
brew cask install alfred
# INSTALLS YOURSELF
# brew cask install shazam
# brew cask install dayone
# brew cask install netease-music
# brew cask install qqvideo
# games
# brew cask install minecraft
# bashrc
touch ~/.bashrc
echo "alias ll=\"ls -Al\"" >> ~/.bashrc
echo "alias devnet=\"export HTTP_PROXY=dev-proxy.oa.com:8080 && export HTTP_PROXY=dev-proxy.oa.com:8080\"" >> ~/.bashrc
# ssh
cat >> ~/.ssh/config <<EOF
host *
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p
EOF
# useful
brew cask install karabiner karabiner-elements
cd ~/codes
git clone https://github.com/thejandroman/bing-wallpaper.git
git clone https://github.com/Jeff2Ma/launchd-with-networkchange.git
cd ~/Downloads
git clone https://github.com/mbadolato/iTerm2-Color-Schemes
git clone https://github.com/TKkk-iOSer/WeChatPlugin-MacOS.git
git clone https://github.com/TKkk-iOSer/wechat-alfred-workflow.git
cd ~
# only after everything is well
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# echo "source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment