Last active
February 17, 2020 15:10
-
-
Save tuxedocat/ab5ae507ecaf846f5105b02875ba77e4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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