On Thu 02 Jul 2015 at 23:35:56 +0100, Brian wrote: > The colour has changed to "That looks like light at the end of the > tunnel". :) The light is getting brighter. $SHLVL appears to be one of the players. Change if [ "$SHLVL" = 1 ]; then in ~/.bash_logout to if [ "$SHLVL" = 2 ]; then and see how you go on.