Print which files are being loaded

This commit is contained in:
Anthony Rose 2022-08-23 13:18:08 +01:00
parent a94cc10f72
commit 7bba951c6f
3 changed files with 6 additions and 0 deletions

View file

@ -8,6 +8,8 @@ case "$-" in
;; ;;
esac esac
echo "[ Reading \"$HOME/.bashrc\" ]"
if [ -f /etc/bashrc ] if [ -f /etc/bashrc ]
then then
. /etc/bashrc . /etc/bashrc

View file

@ -1,8 +1,10 @@
#!/bin/sh #!/bin/sh
if [ -n "$_acp_ignore_shrc" ] if [ -n "$_acp_ignore_shrc" ]
then then
echo "[ Ignoring \"$HOME/.shrc\" ]"
return 1 return 1
fi fi
echo "[ Reading \"$HOME/.shrc\" ]"
case "$-" in case "$-" in
*i*) *i*)

View file

@ -8,6 +8,8 @@ case "$-" in
;; ;;
esac esac
echo "[ Reading \"$HOME/.zshrc\" ]"
if [ -f /etc/zshrc ] if [ -f /etc/zshrc ]
then then
. /etc/zshrc . /etc/zshrc