system-from-scratch/roles/terminal/files/bash_logout.sh

8 lines
220 B
Bash
Raw Normal View History

2024-04-13 19:06:22 +05:00
# ~/.bash_logout: executed by bash(1) when login shell exits.
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi