Browse Source

Extensions load rcfiles

master
Geoffrey Frogeye 1 year ago
parent
commit
d9acf4ff93
Signed by: geoffrey GPG Key ID: C72403E7F82E6AD8
  1. 6
      config/automatrop/roles/extensions/tasks/main.yml
  2. 7
      config/automatrop/roles/extensions/templates/extrc.sh.j2
  3. 0
      config/shell/.dfrecur
  4. 4
      config/shell/commonrc
  5. 3
      config/shell/shrc

6
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"

7
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 #}

0
config/shell/.dfrecur

4
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

3
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
Loading…
Cancel
Save