From bac478d535aa3836eedc6d83e57406e802eeaf46 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 16 Jun 2014 01:48:00 +0200 Subject: [PATCH] Better debug logging, display when script really starts --- sys/bashrc | 4 +++- sys/profile | 4 +++- user/bash_logout | 4 +++- user/bash_profile | 7 ++++++- user/bashrc | 4 +++- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/sys/bashrc b/sys/bashrc index efb445f..e2f2628 100644 --- a/sys/bashrc +++ b/sys/bashrc @@ -3,13 +3,15 @@ # Written 2003-2014 by Alexander Barton (alex@barton.de) # -[ -e ~/.ConfigScripts.debug ] && echo " >> /etc/bash.bashrc ..." +[ -e ~/.ConfigScripts.debug ] && echo " .. /etc/bash.bashrc ..." BASHRCREAD="true" [ -z "$PROFILEREAD" -a -r /etc/profile ] && source /etc/profile [ -z "$PROFILEREAD" -a -r ~/.etc/profile ] && source ~/.etc/profile +[ -e ~/.ConfigScripts.debug ] && echo " >> /etc/bash.bashrc ..." + # Interactive shell? [ "$PS1" ] || return diff --git a/sys/profile b/sys/profile index a190bd7..18559d3 100644 --- a/sys/profile +++ b/sys/profile @@ -4,11 +4,13 @@ # Written 2003-2014 by Alexander Barton (alex@barton.de) # -[ -e ~/.ConfigScripts.debug ] && echo " >> /etc/profile ..." +[ -e ~/.ConfigScripts.debug ] && echo " .. /etc/profile ..." PROFILEREAD="true" export PROFILEREAD +[ -e ~/.ConfigScripts.debug ] && echo " >> /etc/profile ..." + # Setup locale and encoding if [ -e ~/.ConfigScripts.debug ]; then echo " - TERM=\"$TERM\"" diff --git a/user/bash_logout b/user/bash_logout index c22c8f9..8265c8d 100644 --- a/user/bash_logout +++ b/user/bash_logout @@ -10,10 +10,12 @@ # individual ~/bash_logout.user file! # -[ -e ~/.ConfigScripts.debug ] && echo " >> ~/.bash_logout ..." +[ -e ~/.ConfigScripts.debug ] && echo " .. ~/.bash_logout ..." [ -r ~/.bash_logout.user ] && source ~/.bash_logout.user +[ -e ~/.ConfigScripts.debug ] && echo " >> ~/.bash_logout ..." + # Clean up SSH agents, if running and not using keychain(1) if [ $SSH_AGENT_PID ]; then type -t keychain >/dev/null || eval `ssh-agent -k` diff --git a/user/bash_profile b/user/bash_profile index 554658b..a016613 100644 --- a/user/bash_profile +++ b/user/bash_profile @@ -10,10 +10,15 @@ # individual ~/bash_profile.user file! # -[ -e ~/.ConfigScripts.debug ] && echo " >> ~/.bash_profile ..." +[ -e ~/.ConfigScripts.debug ] && echo " .. ~/.bash_profile ..." [ -z "$PROFILEREAD" -a -r ~/.etc/profile ] && source ~/.etc/profile [ -r ~/.bash_profile.user ] && source ~/.bash_profile.user + +[ -e ~/.ConfigScripts.debug ] && echo " >> ~/.bash_profile ..." + +# Add commands here ... + [ -r ~/.bashrc ] && source ~/.bashrc # -eof- diff --git a/user/bashrc b/user/bashrc index 96a4395..ce7fd8d 100644 --- a/user/bashrc +++ b/user/bashrc @@ -12,11 +12,13 @@ # individual ~/bashrc.user file! # -[ -e ~/.ConfigScripts.debug ] && echo " >> ~/.bashrc ..." +[ -e ~/.ConfigScripts.debug ] && echo " .. ~/.bashrc ..." [ -r ~/.bashrc.user-1st ] && source ~/.bashrc.user-1st [ -z "$BASHRCREAD" -a -r ~/.etc/bashrc ] && source ~/.etc/bashrc [ -z "$BASHRCREAD" -a -r /etc/bashrc ] && source /etc/bashrc [ -r ~/.bashrc.user ] && source ~/.bashrc.user +[ -e ~/.ConfigScripts.debug ] && echo " >> ~/.bashrc ..." + # -eof- -- 2.39.2