add modular bashrc
This commit is contained in:
parent
3391f67080
commit
04aba0d670
16 changed files with 49 additions and 21 deletions
2
roles/asdf/files/asdf.bashrc
Normal file
2
roles/asdf/files/asdf.bashrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
[ -f ~/.asdf/asdf.sh ] && source ~/.asdf/asdf.sh
|
||||
[ -f ~/.asdf/completions/asdf.bash ] && source ~/.asdf/completions/asdf.bash
|
|
@ -1,2 +1,3 @@
|
|||
dependencies:
|
||||
- role: common
|
||||
- role: bash
|
||||
|
|
|
@ -32,3 +32,7 @@
|
|||
shell:
|
||||
cmd: "~/.asdf/bin/asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git"
|
||||
creates: ~/.asdf/plugins/elixir
|
||||
- name: Copy asdf.bashrc
|
||||
copy:
|
||||
src: "{{ role_path }}/files/asdf.bashrc"
|
||||
dest: ~/.bashrc.d/asdf.bashrc
|
||||
|
|
Reference in a new issue