evolinux-base: better shell history
* remove duplicates from history * reload/save history at prompt time
This commit is contained in:
parent
47bf0ed2d2
commit
2a89b8ff22
|
@ -14,9 +14,11 @@
|
|||
create: yes
|
||||
state: present
|
||||
with_items:
|
||||
- "export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoreboth"
|
||||
- "export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoreboth,erasedups"
|
||||
- "export HISTSIZE=65535"
|
||||
- "export HISTTIMEFORMAT=\"%c : \""
|
||||
- "shopt -s histappend"
|
||||
- "PROMPT_COMMAND=\"history -a;history -n;${PROMPT_COMMAND}\""
|
||||
when: evolinux_root_bashrc
|
||||
|
||||
## .bash_history should be append-only
|
||||
|
|
Loading…
Reference in a new issue