mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 09:15:24 +02:00
[bash] specify HISTCONTROL value to ignore commands beginning with a space
This commit is contained in:
parent
4ece230fcd
commit
d187fe8496
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ unset bash bmajor bminor
|
|||
HISTSIZE=10000
|
||||
HISTFILESIZE=20000
|
||||
|
||||
# Lines which begin with a space character are not saved in the history list.
|
||||
HISTCONTROL=ignorespace
|
||||
|
||||
# Add date and time to the history
|
||||
HISTTIMEFORMAT="[%d/%m/%Y %H:%M:%S] "
|
||||
|
||||
|
|
Loading…
Reference in a new issue