-
-
Save danhively/d59fba779a5acae46956 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
| # Inspiration http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac && http://fredkelly.net/articles/2014/10/19/developing_on_yosemite.html | |
| #Create alias | |
| alias upgrade='sudo softwareupdate --install --all --list' | |
| #Enable repeat on keydown | |
| defaults write -g ApplePressAndHoldEnabled -bool false | |
| #Show Path bar in Finder | |
| defaults write com.apple.finder ShowPathbar -bool true | |
| #Show Status bar in Finder | |
| defaults write com.apple.finder ShowStatusBar -bool true | |
| #Run this in your terminal to allow text selection in the Quick Look window: | |
| defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder | |
| #Show indicator lights for open applications in the Dock | |
| defaults write com.apple.dock show-process-indicators -bool true | |
| #Enable AirDrop over Ethernet and on unsupported Macs running Lion | |
| defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true | |
| #Set a blazingly fast keyboard repeat rate | |
| defaults write NSGlobalDomain KeyRepeat -int 0.02 | |
| #Set a shorter Delay until key repeat | |
| defaults write NSGlobalDomain InitialKeyRepeat -int 12 | |
| #Enable Safari’s debug menu | |
| defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
| #Add a context menu item for showing the Web Inspector in web views | |
| defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
| #Show the ~/Library folder | |
| chflags nohidden ~/Library | |
| # Check for Homebrew, | |
| # Install if we don't have it | |
| if test ! $(which brew); then | |
| echo "Installing homebrew..." | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| fi | |
| # check install | |
| brew doctor | |
| # Update homebrew recipes | |
| brew update | |
| # (optional) install latest zsh with homebrew (currently 5.0.6) | |
| brew install zsh | |
| # get oh-my-zsh | |
| curl -L http://install.ohmyz.sh | sh | |
| # Install GNU core utilities (those that come with OS X are outdated) | |
| brew install coreutils | |
| # Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed | |
| brew install findutils | |
| # Install Bash 4 | |
| brew install bash | |
| # Install more recent versions of some OS X tools | |
| brew tap homebrew/dupes | |
| brew install homebrew/dupes/grep | |
| #You'll also need to update the $PATH in your ~/.bash_profile in order to use these tools over their Mac counterparts: | |
| $PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH | |
| binaries=( | |
| graphicsmagick | |
| webkit2png | |
| rename | |
| zopfli | |
| ffmpeg | |
| python | |
| sshfs | |
| trash | |
| node | |
| tree | |
| ack | |
| hub | |
| nmap | |
| git | |
| htop | |
| fdupes | |
| vim | |
| byobu | |
| wget | |
| syncthing | |
| speedtest_cli | |
| ) | |
| echo "installing binaries..." | |
| brew install ${binaries[@]} | |
| #Installing Apps with Homebrew Cask | |
| brew install caskroom/cask/brew-cask | |
| # Apps | |
| apps=( | |
| google-chrome | |
| sequel-pro | |
| firefox | |
| qlmarkdown | |
| vagrant | |
| virtualbox | |
| atom | |
| vlc | |
| quicklook-json | |
| webp-quicklook | |
| skype | |
| transmission | |
| keka | |
| textmate | |
| filezilla | |
| sublime-text3 | |
| ) | |
| # Install apps to /Applications | |
| # Default is: /Users/$user/Applications | |
| echo "installing apps..." | |
| brew cask install --appdir="/Applications" ${apps[@]} | |
| #After you're done, you should clean everything up with: | |
| brew cleanup | |
| #If you want to install beta versions of things like Chrome Canary or Sublime Text 3, you'll need to tap the versions cask: | |
| brew tap caskroom/versions | |
| #Cask can also be used to automatically download and install fonts. In order to enable this, you'll need to tap the fonts cask: | |
| brew tap caskroom/fonts | |
| # fonts (list https://github.com/caskroom/homebrew-fonts/tree/master/Casks) | |
| fonts=( | |
| font-m-plus | |
| font-clear-sans | |
| font-roboto | |
| ) | |
| # install fonts | |
| echo "installing fonts..." | |
| brew cask install ${fonts[@]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment