aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_logout
blob: 2cffa5f819cbac9f74835fa8a336c6afa8a298b1 (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