.files and macOS setup
Perl Vim script Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.scripts
.z @ d5adc9a
atom.symlink
jetbrains
sublime-text
vim
xcode
.bash_profile
.exports
.gitconfig
.gitignore
.gitmodules
README.md

README.md

.files and macOS setup

Contains macOS configuration files for various apps and instructions for setting up a new Mac.

Setup

  1. Update everything that is available in the App Store
  2. Install Xcode
  3. Install Homebrew

Install Homebrew packages

$ brew tap caskroom/cask
$ brew cask install dropbox google-chrome spotify slack skype firefox evernote
$ brew cask install docker sourcetree iterm2 macvim visual-studio-code sublime-text postman cyberduck opensim
$ brew cask install mysqlworkbench psequel sequel-pro postgresql sqlitebrowser
$ brew cask install alfred fluid spectacle flycut appcleaner caffeine commander-one flux keepassxc skitch
$ brew cask install google-photos-backup-and-sync adobe-acrobat-reader handbrake vlc libreoffice
$ brew install Caskroom/versions/google-chrome-canary
$ brew install rbenv git carthage uncrustify swiftformat yarn autojump thefuck lnav watchman tree

Install others

These aren't installed through Homebrew

Install npm packages

$ npm install -g machine-share

macOS

  1. Set to always show hidden files

    defaults write -g AppleShowAllFiles -bool true

    Restart Finder.

Bash-it

  1. Clone this repo to a local dir (e.g. ~/.files). Make sure to use --recursive when cloning or run git submodules update --init --recursive after cloning.

  2. Symlink dotfiles/.bash_profile to ~/.bash_profile

  3. Restart Terminal or iTerm2

  4. Enable plugins, aliases, and completions

    $ bash-it enable plugin git autojump edit-mode-vi history
    $ bash-it enable alias git fuck 
    $ bash-it enable completion npm git docker docker-compose docker-machine bundler

Git

Symlink dotfiles/.gitconfig to ~/.gitconfig

$ rm ~/.gitconfig
$ ln -s ~/.files/.gitconfig ~/.gitconfig

Sublime Text 3

  1. Install Package Control

  2. Close Sublime Text

  3. Replace configuration files

    $ rm -rf ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
    $ ln -s ~/.files/sublime-text/Packages/User.symlink ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
    

Atom

  1. Replace ~/.atom

    $ rm -rf ~/.atom
    $ ln -s ~/.files/atom.symlink ~/.atom
  2. Install the Package Sync package.

  3. Execute the Sync command to install the other packages.

  4. Restart Atom

MacVIM

  1. Symlink .vim

    $ ln -s ~/.files/vim/vim.symlink ~/.vim
  2. Install Vundle. Follow all instructions until the :PluginInstall has been executed

  3. Symlink .vimrc

    $ rm ~/.vimrc
    $ ln -s ~/.files/vim/vimrc.symlink ~/.vimrc
  4. In MacVIM, run :PluginInstall to install all plugins. This instructs the Vundle package to install all the other packages managed by it.

  5. The VIM config uses DejaVu Sans Mono for Powerline. For VIM to use this font in the terminal, make sure to set this font as the default font in the Terminal or iTerm2.

Xcode

  1. Intall XVim plugin
  2. For the custom XVim keybindings:
  3. Symlink XVim.idekeybindings.symlink
    $ ln -s ~/.files/xcode/KeyBindings/XVim.idekeybindings.symlink ~/Library/Developer/Xcode/UserData/KeyBindings/XVim.idekeybindings
  4. Enable the keybinding in XCode > Preferences > Key Bindings
  5. Add the custom XCode color themes
  6. Symlink dotfiles/xcode/FontAndColorThemes.symlink to ~/Library/Developer/Xcode/UserData/FontAndColorThemes
    $ ln -s ~/.files/xcode/FontAndColorThemes.symlink ~/Library/Developer/Xcode/UserData/FontAndColorThemes
  7. Choose a theme in XCode > Preferences > Fonts & Colors
  8. Manually change the Font for the theme

Xcode themes were taken from hdoria/xcode-themes.

AppCode

  1. Import dotfiles/.appcode/settings.jar

Alfred

Install powerpacks

Chrome

Install extensions

  • Lastpass
  • Adblock
  • Vimium
  • Evernote Web Clipper
  • Save to Pocket
  • Honey

iTerm2

Install themes from http://iterm2colorschemes.com/

  • Flatland
  • Dracula
  • Hardcore
  • Japanesque
  • Space Grey Eighties Dull