zsh new line prompt after each command

orschiro picture orschiro · Dec 11, 2013 · Viewed 26.3k times · Source

Can I configure my prompt to show a new line after each command?

To give you an example. In the following screenshot I did run cat .zshrc. I want to have a new line between the last output line of the command, . ~/.zsh_aliases, and ~ $.

enter image description here

Answer

Abid H. Mujtaba picture Abid H. Mujtaba · Dec 16, 2013

Edit ~/.zshrc and add the line precmd() { print "" }. This will simply print an empty line before the PROMPT is rendered.