---
# https://gist.github.com/tsabat/1498393
- name: See if zsh is installed
  stat: path=~/.oh-my-zsh
  register: zsh_installed
- name: zsh
  apt: pkg=zsh
  become: true
- name: install oh my zsh
  shell: wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
  when: not zsh_installed.stat.exists
- name: zshrc config
  copy: src=zshrc dest=~/.zshrc
- name: set zsh as the shell
  user: name=ezra shell=/usr/bin/zsh
  become: true
- name: "install custom plugin: zsh-autosuggestions"
  git: repo=git://github.com/zsh-users/zsh-autosuggestions dest=~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
- name: "install custom plugin: zsh-syntax-highlighting"
  git: repo=git://github.com/zsh-users/zsh-syntax-highlighting dest=~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
---
# https://gist.github.com/tsabat/1498393
- name: See if zsh is installed
  stat: path=~/.oh-my-zsh
  register: zsh_installed
- name: zsh
  apt: pkg=zsh
  become: true
- name: install oh my zsh
  shell: wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
  when: not zsh_installed.stat.exists
  become: true
- name: zshrc config
  copy: src=zshrc dest=~/.zshrc
- name: "install custom plugin: zsh-autosuggestions"
  git: repo=git://github.com/zsh-users/zsh-autosuggestions dest=~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
- name: "install custom plugin: zsh-syntax-highlighting"
  git: repo=git://github.com/zsh-users/zsh-syntax-highlighting dest=~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
Escalate privilege for oh-my-zsh install task
Escalate privilege for oh-my-zsh install task
