Skip to content

Instantly share code, notes, and snippets.

@tuxedocat
Last active February 17, 2020 15:10
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 tuxedocat/ab5ae507ecaf846f5105b02875ba77e4 to your computer and use it in GitHub Desktop.
Save tuxedocat/ab5ae507ecaf846f5105b02875ba77e4 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd
sudo xcodebuild -license
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
## Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git tig vim zsh wget pyenv zplug sqlite xz coreutils
brew cleanup -s
## dotfiles
git config --global credential.helper osxkeychain
git config --global core.editor "vim"
git config --global core.excludesfile ~/.gitignore_global
git clone https://github.com/github/gitignore ~/gitignore
cat ~/gitignore/Global/macOS.gitignore >> ~/.gitignore_global
cat ~/gitignore/Global/Vim.gitignore >> ~/.gitignore_global
cat ~/gitignore/Global/JetBrains.gitignore >> ~/.gitignore_global
cat ~/gitignore/Global/Images.gitignore >> ~/.gitignore_global
cat ~/gitignore/Global/Archives.gitignore >> ~/.gitignore_global
cat ~/gitignore/Global/Dropbox.gitignore >> ~/.gitignore_global
cat ~/gitignore/Global/XCode.gitignore >> ~/.gitignore_global
git clone https://github.com/tuxedocat/dotfiles ~/.dotfiles
git clone --recursive https://github.com/changs/slimzsh.git ~/.slimzsh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh-autosuggestions
ln -sf ~/.dotfiles/mac/hyper.js ~/.hyper.js
ln -sf ~/.dotfiles/mac/vimrc ~/.vimrc
ln -sf ~/.dotfiles/mac/ideavimrc ~/.ideavimrc
ln -sf ~/.dotfiles/mac/zshrc ~/.zshrc
ln -sf ~/.dotfiles/mac/zprofile ~/.zprofile
ln -sf ~/.dotfiles/common/editorconfig ~/.editorconfig
## misc.
# rustup
curl https://sh.rustup.rs -sSf | sh
# im-select (vscode plugin)
curl -Ls https://raw.githubusercontent.com/daipeihust/im-select/master/install_mac.sh | sh
# disabling character/accent palette
defaults write -g ApplePressAndHoldEnabled -bool false
echo "Reboot to enable 'ApplePressAndHoldEnabled=false'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment