Search code examples
zshoh-my-zsh

zsh add command to new line


I use Zsh on windows 10

I need to write the command in new line.

enter image description here

Like bash

enter image description here


Solution

  • This is set up for your current theme in the file

    ${ZSH}/themes/${ZSH_THEME}.zsh-theme
    

    and the variable PROMPT='${user}${host}|'. Insert a newline in this string and it will display when you reload the config. The quote characters are important.

    PROMPT='${user}${host}
    |'