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
# Make sure to sign in to Mac App Store before running the script
xcode-select --install
# brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install \
ack \
awscli \
docker-completion \
jq \
mas \
tldr \
thefuck \
tmux \
tree \
wget \
z
echo 'eval $(thefuck --alias)' >> ~/.zshrc
# 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 $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
brew install zsh-autosuggestions
echo 'source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
brew install romkatv/powerlevel10k/powerlevel10k
echo 'source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
# LANG_ALL
# software
brew install --cask \
1password \
5kplayer \
alfred \
alt-tab \
appcleaner \
bartender \
betterzip \
cheatsheet \
docker \
evernote \
go2shell \
google-chrome \
istat-menus \
iterm2 \
jetbrains-toolbox \
keka \
malwarebytes \
miniconda \
notion \
obs \
pdf-expert \
postman \
qlcolorcode \
qlstephen \
qlmarkdown \
qlprettypatch \
quicklook-csv \
quicklook-json \
slack \
sublime-text \
suspicious-package \
teamviewer \
vagrant \
vagrant-manager \
virtualbox \
visual-studio-code \
vlc \
webpquicklook \
wechat \
whatsapp \
youdaodict \
zoom \
zotero
# Mac App Store apps, must sign-in before installation
mas install 937984704 # Amphetamine
mas install 441258766 # Magnet
mas install 497799835 # Xcode
###############################################################################
# apps settings #
###############################################################################
# personal Alfred workflows
git clone https://github.com/qikaigu/alfred.git ~/.alfred
###############################################################################
# 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 sh -c "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