1 2 3 4 5 6
# Clear console if possible when logging out if [[ "$SHLVL" = 1 ]]; then command -v clear_console >/dev/null \ && clear_console -q fi