Use HISTIGNORE instead of HISTCONTROL

This commit is contained in:
Roman Mueller 2018-09-01 13:00:10 +02:00
parent 1246bbc17f
commit dded97652b

View File

@ -5,10 +5,10 @@ functions:
Resulting file will contain additional timestamp lines in the format of `#1535795174` for each data line. Resulting file will contain additional timestamp lines in the format of `#1535795174` for each data line.
- code: | - code: |
LFILE=file_to_write LFILE=file_to_write
HISTCONTROL=ignorespace HISTIGNORE='history *'
history -c history -c
DATA DATA
history -w $LFILE history -w $LFILE
file-read: file-read:
- description: The file content will be surrounded by your current bash history session content. - description: The file content will be surrounded by your current bash history session content.
- code: | - code: |