Extensions load rcfiles

This commit is contained in:
Geoffrey Frogeye 2021-06-23 22:17:51 +02:00
parent 8c289fea17
commit d9acf4ff93
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
5 changed files with 16 additions and 4 deletions

View file

@ -1,3 +1,9 @@
- include_role: - include_role:
name: "geoffreyfrogeye.{{ item }}automatrop.entry" name: "geoffreyfrogeye.{{ item }}automatrop.entry"
loop: "{{ extensions }}" loop: "{{ extensions }}"
- name: Configure extensions rc sourcing
template:
src: extrc.sh.j2
dest: "{{ ansible_user_dir }}/.config/shell/extrc"
mode: "u=rw,g=r,o=r"

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
{% for extension in extensions %}
trysource ~/.config/{{ extension }}scripts/{{ extension }}profile
{% endfor %}
{# TODO Rename profile as rc, and add env #}
{# TODO Put in non-linked path #}

0
config/shell/.dfrecur Normal file
View file

View file

@ -51,7 +51,3 @@ alias ll="_colored_ls"
alias la="_colored_ls -a" alias la="_colored_ls -a"
## FUNCTIONS ## FUNCTIONS
## MISC
[ -f $HOME/.local/share/broot/launcher/bash/1 ] && . $HOME/.local/share/broot/launcher/bash/1
trysource ~/.config/gscripts/gprofile

View file

@ -104,3 +104,6 @@ unset _i_prefer
# Update TTY # Update TTY
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null gpg-connect-agent updatestartuptty /bye >/dev/null
## EXTENSIONS
trysource ~/.config/shell/extrc