aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_logout
blob: 01905f99be1e378d8902346c3cd4f0475d3a964d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Give up completely if no BASH_VERSINFO (<2.0)
if [ -z "$BASH_VERSINFO" ] ; then
    return
fi

# Clear console if possible when logging out
if ((SHLVL == 1)) ; then
    clear_console -q 2>/dev/null
fi