Cygwin and zsh terminals are weird characters used in username

Hi, I recently installed zsh using cygwin on my windows machine, but when I type zsh to start, I get the following:

 GG@GG-PC ~
$ zsh
\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$

On my mac I use iTerm2 and here it is much easier to set up. I also have problems setting up aliases, and this is because it is not configured properly in terms of the configuration file, where I can install this in a separate file.

Any ideas how I can solve it?

+5
source share
3 answers

, zsh PS1 . PS1 , zsh , . zsh:

PS1=$'%{\e]0;%d\a%}\n%F{green}%n@%m %F{yellow}%d%f\n%# '

, ~/.zshrc.

, , .

+9

.zshrc ,

source .zshrc
0

, , zsh bash, cygwin.

, , zsh mintty (, )

: c:\<cygwin-folder>\bin\mintty.exe -i/Cygwin-Terminal.ico/usr/bin/zsh --login -

0

All Articles