aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_logout
blob: 15168ec80c9abc5910aeded6efb665c5fa6d5fcd (plain) (blame)
1
2
3
4
5
# Clear console if possible when logging out
[[ "$SHLVL" = 1 ]] \
    && command -v clear_console &>/dev/null \
    && clear_console -q