You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
836 B
YAML

7 years ago
---
- name: Check Bash-It Installation
stat:
path: ~/.bash_it
register: install
- name: Clone Bash-it
git:
repo: https://github.com/Bash-it/bash-it.git
dest: ~/.bash_it
depth: 1
update: no
notify:
- Install Bash-it
- reload source
when: not install.stat.exists
- name: Update Bash-it
shell: bash-it update
when: install.stat.exists
- name: setup-bashit-theme
lineinfile:
path: .bashrc
regexp: "(export BASH_IT_THEME=)[('a-z')]+"
line: "export BASH_IT_THEME='candy'"
- name: enable bashit plugins
shell: bashit enable plugins {{ .items }}
with_items:
- history
- git
- alias-completion
- autojump
- base
- tmux
- name: enable bashit aliases
shell: bashit enable aliases {{ .items }}
with_items:
- general
- git
- gitsvn
- tmux