From 827ca87a3991382b2e8f88d723bf3138037512a3 Mon Sep 17 00:00:00 2001 From: "Daniel A. Maierhofer" Date: Tue, 31 Jul 2018 12:03:03 +0200 Subject: [PATCH] Add shutdown commands to histignore --- templates/bashrc.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/bashrc.j2 b/templates/bashrc.j2 index b5292b4..1816a8a 100644 --- a/templates/bashrc.j2 +++ b/templates/bashrc.j2 @@ -13,7 +13,7 @@ esac # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth -HISTIGNORE='ls:la:bg:fg:history:free:df' +HISTIGNORE='ls:la:bg:fg:history:free:df:halt:poweroff:shutdown:reboot' PROMPT_COMMAND="history -a; $PROMPT_COMMAND" bind '"\e[A":history-search-backward' 2>/dev/null bind '"\e[B":history-search-forward' 2>/dev/null