From 3d5a6696b16a189fee5e49403bcda3777d90cf63 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Thu, 20 Feb 2025 03:08:52 +0800 Subject: [PATCH] refactor: add bash specific scripts --- .bash_logout | 7 +++++++ .bash_profile | 1 + 2 files changed, 8 insertions(+) create mode 100644 .bash_logout create mode 100644 .bash_profile diff --git a/.bash_logout b/.bash_logout new file mode 100644 index 0000000..de4f5f7 --- /dev/null +++ b/.bash_logout @@ -0,0 +1,7 @@ +# ~/.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 diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..86795d7 --- /dev/null +++ b/.bash_profile @@ -0,0 +1 @@ +source ~/.bashrc