Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
Last active February 21, 2021 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmi3mis/6f75ce988b5009e5d7aba965fbbefa81 to your computer and use it in GitHub Desktop.
Save dmi3mis/6f75ce988b5009e5d7aba965fbbefa81 to your computer and use it in GitHub Desktop.
tools_to_demonstrate
HISTCONTROL=ignoredups
HISTIGNORE=?:??
shopt -s histappend
shopt -s cmdhist
shopt -s lithist
export PROMPT_COMMAND="${PROMPT_COMMAND:+${PROMPT_COMMAND}$"\n"}history -a; history -r"
bind -x '"\C-t2":"echo ${READLINE_LINE} >> ~/.my_history"'
bind '"\C-t3": accept-line'
bind '"\C-m": "\C-t2\C-t3"'
# watch -t -n 1 "tail -n $LINES ~/.my_history"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment