dotfiles/roles/bash/tasks/main.yml
Fernando Schauenburg dad459852c Simplify vim role
It might make sense to make the XDG_* stuff configurable in the future,
but let's keep it simple for now.
2019-11-15 19:19:12 +00:00

33 lines
681 B
YAML

---
- name: Remove pre-installed bash configurations which could cause conflicts
file:
state: absent
path: "~/.{{ item }}"
loop:
- bash_logout
- profile
- name: Create the bash cache and config directories
file:
path: "~/.{{ item }}/bash"
state: directory
loop:
- cache
- config
- name: Deploy bash profile
file:
src: "{{ role_path }}/files/profile"
dest: ~/.config/bash/profile
state: link
force: yes
- name: Make sure bash will find our profile
file:
src: ~/.config/bash/profile
dest: "~/.{{ item }}"
state: link
force: yes
loop:
- bashrc
- bash_profile