diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100644 index 0000000..c489361 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,158 @@ +#!/bin/bash + +# Enable a form of 'strict mode' for Bash +set -euo pipefail +IFS=$'\n\t' + +# Decrease delay between repeated keys +defaults write NSGlobalDomain KeyRepeat -int 0 +defaults write NSGlobalDomain InitialKeyRepeat -int 10 + +# Disable smart quotes and dashes +defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false +defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false +defaults write com.apple.TextEdit SmartQuotes -bool false +defaults write com.apple.TextEdit SmartDashes -bool false + +# Configure menu bar clock to something useful +defaults write com.apple.menuextra.clock "DateFormat" "EEE d MMM HH:mm:ss" +defaults write com.apple.menuextra.clock "FlashDateSeparators" 0 +defaults write com.apple.menuextra.clock "IsAnalog" 0 + +# Install xcode +xcode-select --install + +# Install Homebrew +/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +brew update + +# Install Bash +brew install bash +echo /usr/local/bin/bash | sudo tee -a /etc/shells +chsh -s /usr/local/bin/bash + +# Configure Bash +curl https://raw.githubusercontent.com/Integralist/dotfiles/master/.bashrc -o ~/.bashrc + +cat > ~/.bash_profile < ~/.inputrc < ~/.gitignore-global < ~/.rspec +curl https://raw.githubusercontent.com/Integralist/dotfiles/master/.tmux.conf -o ~/.tmux.conf