Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
27 lines (20 sloc)
804 Bytes
This file contains 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
#!/usr/bin/env ruby | |
require "fileutils" | |
def run(command) | |
puts `#{command} 2>&1` | |
end | |
# Link dotfiles to paths where they'll actually be accessed. | |
run "ln -s ~/dotfiles/gitconfig ~/.gitconfig" | |
run "ln -s ~/dotfiles/gitignore ~/.gitignore" | |
run "ln -s ~/dotfiles/inputrc ~/.inputrc" | |
run "ln -s ~/dotfiles/irbrc ~/.irbrc" | |
run "ln -s ~/dotfiles/rp5rc ~/.rp5rc" | |
run "ln -s ~/dotfiles/slate ~/.slate" | |
run "ln -s ~/dotfiles/tmux.conf ~/.tmux.conf" | |
run "brew bundle --file ~/dotfiles/Brewfile" | |
# Clean up Homebrew cache. | |
run "brew cleanup" | |
# Eliminate useless fading animation on iTerm2 hotkey window. | |
run "defaults write com.googlecode.iterm2 HotkeyTermAnimationDuration -float 0.00001" | |
# Disable Mission Control/Expose. | |
run "defaults write com.apple.dock mcx-expose-disabled -bool TRUE && killall Dock" |