Add shutdown commands to histignore
This commit is contained in:
@@ -13,7 +13,7 @@ esac
|
|||||||
# don't put duplicate lines or lines starting with space in the history.
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
# See bash(1) for more options
|
# See bash(1) for more options
|
||||||
HISTCONTROL=ignoreboth
|
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"
|
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
||||||
bind '"\e[A":history-search-backward' 2>/dev/null
|
bind '"\e[A":history-search-backward' 2>/dev/null
|
||||||
bind '"\e[B":history-search-forward' 2>/dev/null
|
bind '"\e[B":history-search-forward' 2>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user