Skip to content

Instantly share code, notes, and snippets.

View nelbren's full-sized avatar

nelbren nelbren

View GitHub Profile
@nelbren
nelbren / spy.sh
Last active September 4, 2020 20:51
spy.sh
#!/bin/bash
# spy.sh - 2020-09-04 - gist.github.com/nelbren
# https://www.thomaslaurenson.com/blog/2018/07/02/better-bash-history/
export HISTFILESIZE=-1
export HISTSIZE=-1
export HISTCONTROL=ignoredups
export HISTTIMEFORMAT='%F %T '
export HISTIGNORE="./.itsme.bash"
PROMPT_COMMAND='history -a'
shopt -s cmdhist