Last active
February 21, 2021 12:59
-
-
Save dmi3mis/6f75ce988b5009e5d7aba965fbbefa81 to your computer and use it in GitHub Desktop.
tools_to_demonstrate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HISTCONTROL=ignoredups | |
HISTIGNORE=?:?? | |
shopt -s histappend | |
shopt -s cmdhist | |
shopt -s lithist | |
export PROMPT_COMMAND="${PROMPT_COMMAND:+${PROMPT_COMMAND}$"\n"}history -a; history -r" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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