---
- name: Update Homebrew
  homebrew: update_homebrew=yes

- name: Install libraries with Homebrew
  homebrew: name={{ item }} state=latest
  with_items:
    - git
    - vim
    - zsh
    - tmux
    - tree 
    - ag

- name: Cleanup Brew packages
  command: brew cleanup


---
- name: Update Homebrew
  homebrew: update_homebrew=yes

- name: Install libraries with Homebrew
  homebrew: name={{ item }} state=latest
  with_items:
    - git
    - vim
    - zsh
    - tmux
    - tree 
    - ag

- name: Cleanup Brew packages
  command: brew cleanup

- name: Create Screenshot Directory
  file: path=~/Pictures/Screenshots state=directory mode=0755

- name: Write to screencapture defaults
  raw: defaults write com.apple.screencapture location ~/Pictures/Screenshots

# as suggested by http://osxdaily.com/2011/01/26/change-the-screenshot-save-file-location-in-mac-os-x/
- name: Kill SystemUIServer
  raw: killall SystemUIServer;


Set OSX default screencapture to ~/Pictures/Screenshots
Set OSX default screencapture to ~/Pictures/Screenshots

- fixes #14
