Skip to content

Commit

Permalink
Fix directory issue for zsh plugins & themes
Browse files Browse the repository at this point in the history
Damn thing wasn't pulling the files from the web because the directories
didn't exist.

As a result, instruct TheMachine to first create the dirs, then pull the
plugins & themes

Related: #7
Signed-off-by: Minca Daniel Andrei <[email protected]>
  • Loading branch information
dminca committed Sep 7, 2016
1 parent 9351959 commit 491fb41
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions roles/packages/tasks/zshell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@
shell: which zsh
tags: zsh

- name: Create plugins and themes dirs
file: path=~/.oh-my-zsh/custom/{{ item }} state=directory
with_items:
- plugins/dangit
- themes
tags: zsh

- name: Pull the Custom Plugins and Themes
become: yes
become_method: sudo
get_url:
url: https://raw.githubusercontent.com/{{ gh_user }}/{{ gh_repo }}/{{ gh_branch }}/custom/{{ item.name }}
dest: ~/.oh-my-zsh/custom/{{ item.dir }}
Expand Down

0 comments on commit 491fb41

Please sign in to comment.