add modular bashrc

This commit is contained in:
Pim Kunis 2023-03-04 14:28:09 +01:00
parent 3391f67080
commit 04aba0d670
16 changed files with 49 additions and 21 deletions

1
roles/bash/files/bashrc Normal file
View file

@ -0,0 +1 @@
for f in ~/.bashrc.d/*; do source $f; done

View file

@ -6,10 +6,18 @@
- bat
- fzf
- name: Install .bashrc
template:
src: "{{ role_path }}/templates/bashrc.j2"
dest: ~/.bashrc
- name: Install .fzf.bash
copy:
src: "{{ role_path }}/files/fzf.bash"
dest: ~/.fzf.bash
src: "{{ role_path }}/files/bashrc"
dest: ~/.bashrc
- name: Create bashrc config directory
file:
path: ~/.bashrc.d
state: directory
- name: Copy base.bashrc
template:
src: "{{ role_path }}/templates/base.bashrc.j2"
dest: ~/.bashrc.d/base.bashrc
- name: Copy fzf.bash
copy:
src: "{{ role_path }}/files/fzf.bashrc"
dest: ~/.bashrc.d/fzf.bashrc

View file

@ -90,18 +90,5 @@ alias gb='git branch'
alias ga='git add'
alias gl='git log'
# For neovim
PATH=$PATH:/usr/local
alias vi='nvim'
alias vim='nvim'
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# asdf
[ -f ~/.asdf/asdf.sh ] && source ~/.asdf/asdf.sh
[ -f ~/.asdf/completions/asdf.bash ] && source ~/.asdf/completions/asdf.bash
# pip scripts
PATH=$PATH:~/.local/bin
export SSH_AUTH_SOCK="{{ ssh_agent_socket }}"