From 9a934b333cd5120e8aea9dfb845d343e08e8f440 Mon Sep 17 00:00:00 2001 From: urosm Date: Sat, 12 Oct 2024 00:27:21 +0200 Subject: [PATCH] Ignore `exit` in bash history --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 8b4bfa1..d098c70 100644 --- a/.bashrc +++ b/.bashrc @@ -21,7 +21,7 @@ alias lll="ls -AFl" HISTCONTROL="ignoreboth:erasedups" HISTFILESIZE=-1 HISTSIZE=-1 -HISTIGNORE="q" +HISTIGNORE="exit:q" shopt -s histappend PROMPT_COMMAND=${PROMPT_COMMAND:+${PROMPT_COMMAND%;}; }"history -a; history -c; history -r;"