Recreate bash history after deleting it

pull/1/head
sundowndev 2019-01-08 15:15:15 +01:00
parent fe51c59b36
commit f7923e9173
1 changed files with 2 additions and 3 deletions

View File

@ -70,11 +70,10 @@ elif [[ $option == 3 ]]; then
# Restore default settings
if [[ -L ~/.bash_history ]]; then
rm -rf ~/.bash_history
echo "" > ~/.bash_history
echo "[+] Disabled sending history to /dev/null"
fi
echo "" > ~/.bash_history
if [[ -L ~/.zsh_history ]]; then
rm -rf ~/.zsh_history
echo "" > ~/.zsh_history
@ -83,7 +82,7 @@ elif [[ $option == 3 ]]; then
export HISTFILESIZE=""
export HISTSIZE=50000
echo "[+] Restore HISTFILESIZE & HISTSIZE default values"
echo "[+] Restore HISTFILESIZE & HISTSIZE default values."
# set +o history # Undo this