Skip to content

Commit

Permalink
"git stuff"
Browse files Browse the repository at this point in the history
  • Loading branch information
rricard committed Apr 29, 2014
1 parent fcf6cf9 commit a881ba1
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
tap: thoughtbot/formulae
package_name: gitsh
- role: legit
- role: hub
- role: brew_package
package_name: git-extras
- role: brew_package
package_name: git-flow
## languages
- role: brew_package
package_name: node
Expand Down
4 changes: 4 additions & 0 deletions roles/hub/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
dependencies:
- role: brew_package
package_name: hub
16 changes: 16 additions & 0 deletions roles/hub/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
# shim hub

- name: ensure bash_profile presence
ignore_errors: True
file: path=~/.bash_profile state=touch

- name: ensure zshenv presence
ignore_errors: True
file: path=~/.zshenv state=touch

- name: add shim to bash
lineinfile: dest=~/.bash_profile regexp="hub" line="eval \"$(hub alias -s)\"" state=present

- name: add shim to zsh
lineinfile: dest=~/.zshenv regexp="hub" line="eval \"$(hub alias -s)\"" state=present
4 changes: 4 additions & 0 deletions roles/legit/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
dependencies:
- role: brew_package
package_name: legit
5 changes: 5 additions & 0 deletions roles/legit/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# links legit to git

- name: legit link
command: legit install

0 comments on commit a881ba1

Please sign in to comment.