Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Curate Your Shell History. Parent comment
Infinite history instead of a large limit:
HISTFILESIZE=-1 HISTSIZE=-1
HISTCONTROL=ignorespace:ignoredups:erasedups
shopt -s histverify shopt -s histreedit
trap 'history -a' DEBUG
trap "history -a ; $(trap -p DEBUG | cut -d "'" -f 2)" DEBUG
There are no comments on this comment yet.
Infinite history instead of a large limit:
Also ignore commands starting with a space: Enable history substitution to verify commands before running them: Write commands to history files before running the commands instead of after the commands finish: Or if you already have a DEBUG trap: