Skip to content

Instantly share code, notes, and snippets.

@qikaigu
Last active September 7, 2021 07:08
Show Gist options
  • Select an option

  • Save qikaigu/4f4f9f8d4160f0ffb71a66d1aa6590fe to your computer and use it in GitHub Desktop.

Select an option

Save qikaigu/4f4f9f8d4160f0ffb71a66d1aa6590fe to your computer and use it in GitHub Desktop.
Setup Mac OS
sudo xcode-select --install
# brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget
brew install z
brew install ack
brew install tmux
brew install tree
brew install docker-completion
brew install pyenv
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
source ~/.zshrc
pyenv install 3.6.9
pyenv global 3.6.9
pyenv rehash
curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
sudo python get-pip.py
pip install virtualenv
pip install 'ipython[qtconsole,notebook,test]'
# Oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# plugins TODO
brew install zsh-syntax-highlighting
echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
brew install zsh-autosuggestions
echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
# LANG_ALL
# software
brew cask install \
qlcolorcode \
qlstephen \
qlmarkdown \
quicklook-json \
qlprettypatch \
quicklook-csv \
webpquicklook
brew cask install \
alfred \
bartender \
betterzip \
appcleaner \
caffeine \
cheatsheet \
docker \
google-chrome \
google-hangouts \
istat-menus \
iterm2 \
malwarebytes \
sublime-text \
virtualbox \
vagrant \
vagrant-manager \
suspicious-package \
vlc \
teamviewer \
zoomus
# apps to be installed from AppStore
# 1password
# wechat
# whatsapp
# the-unarchiver
# youdaodict
###############################################################################
# Finder #
###############################################################################
# Finder: show hidden files by default
defaults write com.apple.finder AppleShowAllFiles -bool true
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Finder: show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Finder: allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Vim config TODO
# tmux config TODO
# Enable TouchID for iTerm2
sudo echo 'auth sufficient pam_tid.so' >> /etc/pam.d/sudo
# You have to go into Preferences -> Advanced and deactivate Allow sessions to survive logging out and back in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment