From cf0f8f58ef587fe4a7f7c3536b9d96b8e51a7787 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 30 Sep 2022 12:32:29 +0000 Subject: [PATCH] Update dotfiles/.bash_logout, dotfiles/.profile --- dotfiles/.bash_logout | 5 +++++ dotfiles/.profile | 13 ------------- 2 files changed, 5 insertions(+), 13 deletions(-) create mode 100644 dotfiles/.bash_logout diff --git a/dotfiles/.bash_logout b/dotfiles/.bash_logout new file mode 100644 index 00000000..83e434d8 --- /dev/null +++ b/dotfiles/.bash_logout @@ -0,0 +1,5 @@ +# ~/.bash_logout: executed by bash(1) when login shell exits + +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q +fi \ No newline at end of file diff --git a/dotfiles/.profile b/dotfiles/.profile index 292dfb47..fc057c86 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -141,19 +141,6 @@ resetdocker() { docker system prune -a --force } -# Source: https://itnext.io/bash-aliases-are-awesome-8a76aecc96ab -# Type ".. 5" to cd .. 5 times -..() { - N=$(($1)) - if [ $N -lt 1 ]; then - N=1 - fi - while ((N)); do - cd .. - let N-=1 - done; -} - ### Aliases # Create an Authelia password hash