1
0
Fork 0
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:
Hyacinthe Cartiaux 2020-12-10 11:06:49 +01:00
parent 4ece230fcd
commit d187fe8496

View file

@ -103,6 +103,9 @@ unset bash bmajor bminor
HISTSIZE=10000 HISTSIZE=10000
HISTFILESIZE=20000 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 # Add date and time to the history
HISTTIMEFORMAT="[%d/%m/%Y %H:%M:%S] " HISTTIMEFORMAT="[%d/%m/%Y %H:%M:%S] "