From e0614257b70714841dacb3f43821ff6d85ae9e21 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Tue, 16 Jun 2020 21:53:40 +0100 Subject: Remove bash_history if it exits from user's home directory as it will be replaced by dot files --- gohan.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gohan.sh b/gohan.sh index 789d954..eb1b9ce 100644 --- a/gohan.sh +++ b/gohan.sh @@ -62,6 +62,7 @@ add_user() { usermod -aG wheel "$name" [ ! -d "/home/$name/.local/src" ] && mkdir -p "/home/$name/.local/src" && chown -R "$name":"$name" /home/"$name/.local" # Remove these files as they will be installed as part of the dotfiles. + [ -f "/home/$name/.bash_history" ] && rm /home/$name/.bash_history [ -f "/home/$name/.bash_logout" ] && rm /home/$name/.bash_logout [ -f "/home/$name/.bash_profile" ] && rm /home/$name/.bash_profile [ -f "/home/$name/.bashrc" ] && rm /home/$name/.bashrc -- cgit v1.2.3-13-gbd6f