Table of Contents

bash

Dont keep edits in history (as zsh does)

bind 'set revert-all-at-newline on'

References:

History operations

Save history without exiting bash

history -A

Show history with full timestamps

HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S ' history

Undo edits in history

M-r (or ESC,r) Restore last version
erase line and press ENTER
C-x,C-u Undo last key
C-_
C-/

References:

Bash Prompt

* http://ceving.blogspot.com/2015/10/limit-length-of-path-in-bash-prompt.html