├── README.md └── run-me.sh /README.md: -------------------------------------------------------------------------------- 1 | # Macbook Bootstrap 2 | 3 | ## Pre 4 | - Backup .ssh 5 | - Backup /etc/hosts 6 | - Backup Windows VM's 7 | - Backup ~/dev 8 | - Backup MySQL + PGSQL Databases (usually I don't care) 9 | - Backup ~/Downloads 10 | - Backup ~/Desktop (should stop using.. but) 11 | - Backup ~/.aws/ 12 | - Backuop ~/.zsh_history 13 | 14 | ## Installations 15 | 16 | ### Essencial 17 | - Mac OS Newest version installed? Check for update 18 | - Xcode (App Store) 19 | - Install Command line tools (Includes GIT) 20 | ```bash 21 | xcode-select --install 22 | ``` 23 | 24 | - Change Terminal Shell to **ZSH** 25 | - Install Homebrew [[Download](http://mxcl.github.io/homebrew/)] 26 | - Install Node [[Download](http://nodejs.org/)] 27 | - Install https://github.com/tj/n 28 | - Create ~/dev folder 29 | - Install dotfiles from Bitbucket 30 | - Create symlink from .oh-my-z-shell to dev/me/dotfiles 31 | 32 | ```bash 33 | ln -s "/Users/myuser/dev/me/dotfiles/plugins/djalma/djalma.plugin.zsh" /Users/myuser/.oh-my-zsh/plugins/djalma/djalma.plugin.zsh 34 | ``` 35 | 36 | - Install 1Password [[Download](https://agilebits.com/onepassword)] 37 | - Use archive file from Dropbox 38 | - Install iTerm.app [[Download](http://www.iterm2.com/#/section/home)] 39 | - Install Rectangle [[Download](https://rectangleapp.com/)] 40 | - Organize my Finder Favorites like the preview [Preview](http://cl.ly/image/2V3s3I0i3O2n) 41 | 42 | ### System Config 43 | ```bash 44 | curl -L https://github.com/djalmaaraujo/macbook-bootstrap/raw/master/run-me.sh | sh 45 | ``` 46 | 47 | ### Personal 48 | - Install Spotify [[Download](http://spotify.com/)] 49 | - Dato 50 | 51 | ### Work 52 | - Install VS Code [Download](https://code.visualstudio.com/) 53 | - Figma 54 | - Docker 55 | 56 | ### Not required 57 | - Install Github Desktop 58 | - Postgres App 59 | 60 | ### Ruby/Node Environment 61 | - Install RVM [[Download](https://rvm.io/)] 62 | - Install N [[Download](https://github.com/tj/n)] 63 | -------------------------------------------------------------------------------- /run-me.sh: -------------------------------------------------------------------------------- 1 | printf "################ Setting up things ################\n\n" 2 | 3 | printf "Show hidden files\n" 4 | defaults write com.apple.finder AppleShowAllFiles YES 5 | 6 | printf "Enable key repeat\n" 7 | defaults write -g ApplePressAndHoldEnabled -bool false 8 | 9 | printf "Remove DS_Stores for good" 10 | defaults write com.apple.desktopservices DSDontWriteNetworkStores true 11 | 12 | printf "Remove all stupid Dock application\n" 13 | defaults write com.apple.dock static-only -bool TRUE; killall Dock 14 | 15 | printf "Auto hide Dock\n" 16 | defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0.8 && killall Dock 17 | 18 | printf "\n\nDock\n\n" 19 | 20 | printf "Set the icon size of Dock items to 48 pixels\n" 21 | defaults write com.apple.dock tilesize -int 48 22 | 23 | printf "Dock: enable magnification\n" 24 | defaults write com.apple.dock magnification -bool false 25 | 26 | printf "Set magnification icon size to 80 pixels\n" 27 | defaults write com.apple.dock largesize -float 80 28 | 29 | printf "Dock: minimize windows into their applications icon\n" 30 | defaults write com.apple.dock minimize-to-application -bool true 31 | 32 | printf "Remove the auto-hiding Dock delay\n" 33 | defaults write com.apple.dock autohide-delay -float 0 34 | 35 | printf "Speed up animation when hiding/showing the Dock\n" 36 | defaults write com.apple.dock autohide-time-modifier -float 0.3 37 | 38 | printf "Dock: automatically hide and show\n" 39 | defaults write com.apple.dock autohide -bool true 40 | 41 | printf "Dock: make icons of hidden applications translucent\n" 42 | defaults write com.apple.dock showhidden -bool false 43 | 44 | printf "\n\nScreen\n\n" 45 | 46 | printf "Require password immediately after sleep or screen saver begins\n" 47 | defaults write com.apple.screensaver askForPassword -int 1 48 | defaults write com.apple.screensaver askForPasswordDelay -int 0 49 | 50 | printf "Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)\n" 51 | defaults write com.apple.screencapture type -string "png" 52 | 53 | printf "Enable subpixel font rendering on non-Apple LCDs\n" 54 | defaults write NSGlobalDomain AppleFontSmoothing -int 2 55 | 56 | printf "\n\nFinder\n\n" 57 | 58 | printf "Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons\n" 59 | defaults write com.apple.finder QuitMenuItem -bool true 60 | 61 | printf "Finder: disable window and Get Info animations\n" 62 | defaults write com.apple.finder DisableAllAnimations -bool true 63 | 64 | printf "General: Enable icons for hard drives, servers, and removable media on the desktop\n" 65 | defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true 66 | defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true 67 | defaults write com.apple.finder ShowMountedServersOnDesktop -bool true 68 | defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true 69 | 70 | printf "Finder: show hidden files by default\n" 71 | defaults write com.apple.finder AppleShowAllFiles -bool true 72 | 73 | printf "Finder: show all filename extensions\n" 74 | defaults write NSGlobalDomain AppleShowAllExtensions -bool true 75 | 76 | printf "Finder: show status bar\n" 77 | defaults write com.apple.finder ShowStatusBar -bool true 78 | 79 | printf "Finder: show path bar\n" 80 | defaults write com.apple.finder ShowPathbar -bool true 81 | 82 | printf "Finder: allow text selection in Quick Look\n" 83 | defaults write com.apple.finder QLEnableTextSelection -bool true 84 | 85 | printf "Finder: display full path as Finder window title\n" 86 | defaults write com.apple.finder _FXShowPosixPathInTitle -bool true 87 | 88 | printf "When performing a search, search the current folder by default\n" 89 | defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" 90 | 91 | printf "General: enable the warning when changing a file extension\n" 92 | defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true 93 | 94 | printf "Finder: enable spring loading for directories\n" 95 | defaults write NSGlobalDomain com.apple.springing.enabled -bool false 96 | 97 | printf "Remove the spring loading delay for directories\n" 98 | defaults write NSGlobalDomain com.apple.springing.delay -float 0 99 | 100 | printf "General: create .DS_Store files on network volumes\n" 101 | defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true 102 | defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true 103 | 104 | printf "Use columns view in all Finder windows by default\n" 105 | printf "Four-letter codes for the other view modes: icnv, Nlsv, Flwv\n" 106 | defaults write com.apple.finder FXPreferredViewStyle -string "clmv" 107 | 108 | printf "General: enable the warning before emptying the Trash\n" 109 | defaults write com.apple.finder WarnOnEmptyTrash -bool true 110 | 111 | printf "Finder: enable AirDrop over Ethernet and on unsupported Macs running Lion\n" 112 | defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true 113 | 114 | printf "Show the ~/Library folder\n" 115 | chflags nohidden ~/Library 116 | 117 | printf "Use Plain Text Mode as Default\n" 118 | defaults write com.apple.TextEdit RichText -int 0 119 | 120 | printf "Full Keyboard Access - All Controls\n" 121 | defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 122 | 123 | 124 | printf "################ 💩 DONE 💩 ################\n\n" 125 | --------------------------------------------------------------------------------