Listar arquivos carregados na inicialização do Bash

Opções de início do bash

Shell interativo de login

$ bash -lixc exit 2>&1 | sed -rn '/^\++ \. /p'
+ . /etc/bash.bashrc
+ . /etc/profile.d/bash_completion.sh
++ . /usr/share/bash-completion/bash_completion
+++ . /etc/bash_completion.d/git-prompt
++++ . /usr/lib/git-core/git-sh-prompt
+ . /etc/profile.d/flatpak.sh
+ . /etc/profile.d/gawk.sh
+ . /etc/profile.d/vte-2.91.sh
+ . /home/blau/.bashrc
++ . /usr/share/bash-completion/bash_completion
+++ . /etc/bash_completion.d/git-prompt
++++ . /usr/lib/git-core/git-sh-prompt
++ . /home/blau/.bash_aliases
++ . /home/blau/.bash_functions
++ . /home/blau/lib/tmux-prompt

Shell interativo “não-login”

$ bash -ixc exit 2>&1 | sed -rn '/^\++ \. /p'
+ . /usr/share/bash-completion/bash_completion
++ . /etc/bash_completion.d/git-prompt
+++ . /usr/lib/git-core/git-sh-prompt
+ . /home/blau/.bash_aliases
+ . /home/blau/.bash_functions
+ . /home/blau/lib/tmux-prompt

Shell não interativo

$ bash -xc exit 2>&1 | sed -rn '/^\++ \. /p'
$

Tags: bash, arquivos de início, source