zsh new line prompt after each command
Edit ~/.zshrc and add the line precmd() { print “” }. This will simply print an empty line before the PROMPT is rendered.
Edit ~/.zshrc and add the line precmd() { print “” }. This will simply print an empty line before the PROMPT is rendered.
You can use ESC–Return. FWIW, I tested it on Debian Jessie, zsh 5.0.7 and it works there.
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
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