zsh: update prompt with current time when a command is started

This is in fact possible without resorting to strange hacks. I’ve got this in my .zshrc RPROMPT='[%D{%L:%M:%S %p}]’ TMOUT=1 TRAPALRM() { zle reset-prompt } The TRAPALRM function gets called every TMOUT seconds (in this case 1), and here it performs a prompt refresh, and does so until a command starts execution (and it doesn’t interfere … Read more

List of zsh bindkey commands

bindkey -l will give you a list of existing keymap names. bindkey -M <keymap> will list all the bindings in a given keymap. If you use the zsh command line in emacs mode, then the emacs keymap is likely to be most important for you. If you use it in vi mode, then you’d be … Read more