evolinux-base: better shell history

* remove duplicates from history
* reload/save history at prompt time
This commit is contained in:
Jérémy Lecour 2018-09-11 14:13:18 +02:00 committed by Jérémy Lecour
parent 47bf0ed2d2
commit 2a89b8ff22

View file

@ -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