macOS

    My daily driver is a MacBook Pro, this is the thing that I will run when I
    switch to a new computer.

    GUI environment

    The plist file for setting up PATH for GUI applications.
         
         
         
           
             Label
             x.env
             ProgramArguments
             
               sh
               -c
               
                 launchctl setenv PATH $PATH:/usr/local/bin:/usr/local/sbin
               
    
             
             RunAtLoad
             
           
         

    setup homebrew

      which -s brew
      if [[ $? != 0 ]]; then
          echo "install homebrew"
          /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      fi
      # brew tap Homebrew/bundle
      brew update
      brew bundle --file=.dist/Brewfile

    Brewfile

    Basic

    These are the must haves, for any Mac machine that I have to be working on.
      tap 'caskroom/cask'
      tap 'caskroom/fonts'
      tap 'railwaycat/emacsmacport'
      brew 'tree'
      brew 'git'
      brew 'git-flow-avh'
      brew 'hub'
      brew 'coreutils'
      brew 'fish'
      brew 'vim'
      brew 'emacs'
      brew 'tmux'
      brew 'reattach-to-user-namespace'
      brew 'the_silver_searcher'
      brew 'aspell', args: ['with-lang-en']
      brew 'yarn'
    
      # casks
      cask 'google-chrome'
      #cask 'emacs'
      cask 'emacs-mac'
      cask '1password'
      cask 'istat-menus'
      cask 'bartender'
      cask 'slack'
      cask 'skype'
      cask 'hyper'
      cask 'font-hack-nerd-font'

    Personal

    This list is for my personal computer.
      cask 'dropbox'
      cask 'omnigraffle'
      cask 'omnifocus'
      cask 'plex-media-server'

    The Tweaks

    iterm2

    Use zsh instead of bash. command+,= -> =Profiles -> Command. Set to /usr/local/bin/zsh. Enable system-wide hotkey. Enable =Meta= key for emacs.

    spell checking

    I choose not to tangle dictionary files because I want to use symbol links, for easy save new words.
      for file in "$(pwd -P)"/resources/*; do
          target="${ZDOTDIR:-$HOME}/.$(basename $file)"
          if [[ -h "$target" || -a "$target" ]]; then
              rm "$target"
          fi
          ln -s "$file" "$target"
      done

    fix ssh

    This is for fixing ssh keys in macOS Sierra. Following this article.
      Host *
        AddKeysToAgent yes
        UseKeychain yes
        IdentityFile ~/.ssh/id_rsa

    Terminal.app color theme

    I am currently a fan of dradula theme.