diff --git a/config/automatrop/roles/extensions/tasks/main.yml b/config/automatrop/roles/extensions/tasks/main.yml index b659109..5345d1f 100644 --- a/config/automatrop/roles/extensions/tasks/main.yml +++ b/config/automatrop/roles/extensions/tasks/main.yml @@ -1,3 +1,9 @@ - include_role: name: "geoffreyfrogeye.{{ item }}automatrop.entry" 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" diff --git a/config/automatrop/roles/extensions/templates/extrc.sh.j2 b/config/automatrop/roles/extensions/templates/extrc.sh.j2 new file mode 100644 index 0000000..64c45b3 --- /dev/null +++ b/config/automatrop/roles/extensions/templates/extrc.sh.j2 @@ -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 #} diff --git a/config/shell/.dfrecur b/config/shell/.dfrecur new file mode 100644 index 0000000..e69de29 diff --git a/config/shell/commonrc b/config/shell/commonrc index 203042e..87f1762 100644 --- a/config/shell/commonrc +++ b/config/shell/commonrc @@ -51,7 +51,3 @@ alias ll="_colored_ls" alias la="_colored_ls -a" ## FUNCTIONS - -## MISC -[ -f $HOME/.local/share/broot/launcher/bash/1 ] && . $HOME/.local/share/broot/launcher/bash/1 -trysource ~/.config/gscripts/gprofile diff --git a/config/shell/shrc b/config/shell/shrc index 4739847..c5b7b23 100644 --- a/config/shell/shrc +++ b/config/shell/shrc @@ -104,3 +104,6 @@ unset _i_prefer # Update TTY export GPG_TTY=$(tty) gpg-connect-agent updatestartuptty /bye >/dev/null + +## EXTENSIONS +trysource ~/.config/shell/extrc