Skip to content

Commit

Permalink
Added custom .bash_logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mis1eader-dev committed Apr 3, 2023
1 parent 85bd674 commit 6d2faad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
File renamed without changes.
10 changes: 10 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,16 @@ fi



# Add our custom .bash_logout on top of the existing .bash_logout, by sourcing
BASH_LOGOUT_PATH="~/.config/.bash_logout"
BASH_LOGOUT_DATA=". $BASH_LOGOUT_PATH"
BASH_LOGOUT_DEFAULT_PATH=$HOME/.bash_logout
if ! test -f $BASH_LOGOUT_DEFAULT_PATH || ! grep -q "^$BASH_LOGOUT_DATA\$" $BASH_LOGOUT_DEFAULT_PATH; then
echo "$BASH_LOGOUT_DATA" >> $BASH_LOGOUT_DEFAULT_PATH
fi



# Finish
echo $'\nSetup complete'
read -p "Press enter to finish"
Expand Down

0 comments on commit 6d2faad

Please sign in to comment.