diff --git a/bash/ps-twtty-7.sh b/bash/ps-twtty-7.sh index a528742..a3e3d59 100755 --- a/bash/ps-twtty-7.sh +++ b/bash/ps-twtty-7.sh @@ -161,7 +161,14 @@ ${PROMPT_COMMAND}" export HISTIGNORE='history:history *' } +# Secure bash history +if [ ! -d "$HOME/bash_history" ]; then + mkdir "$HOME/bash_history" + chmod 0700 "$HOME/bash_history" +fi + twtty + unset twtty fi