]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/shell/bash/tasks/main.yml
Make bash xdg-compliant
[perso/Immae/Config/Ansible.git] / roles / shell / bash / tasks / main.yml
index d74421aa11543fb83bea483d655fa76b630496cc..6bf38592abb709704e8e6295e705da16b352aeeb 100644 (file)
@@ -1,12 +1,20 @@
 ---
+- name: Create config dir
+  file:
+    path: $XDG_CONFIG_HOME/bash
+    state: directory
 - name: Add bashrc config
   template:
     src: bashrc.j2
-    dest: $HOME/.bashrc
+    dest: $XDG_CONFIG_HOME/bash/bashrc
 - name: Add bash_profile config
   template:
     src: bash_profile.j2
-    dest: $HOME/.bash_profile
+    dest: $XDG_CONFIG_HOME/bash/bash_profile
+- name: Add inputrc config
+  copy:
+    src: inputrc
+    dest: $XDG_CONFIG_HOME/inputrc
 - name: Create bash state dir
   file:
     path: $XDG_STATE_HOME/bash