Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Hi, can someone help me to convert my bash PS1 to zsh?
- X-seq: zsh-users 27589
- From: Frank Schwidom <schwidom@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Hi, can someone help me to convert my bash PS1 to zsh?
- Date: Mon, 21 Mar 2022 17:06:50 +0100
- Archived-at: <https://zsh.org/users/27589>
- List-id: <zsh-users.zsh.org>
And here it is:
(ins)$ echo "$PS1"
\[\]\u@\h \D{%Y-%m-%d %H:%M:%S}:\n\[\]\w\n\[\]\$\[\]
(ins)$ set | grep '^PS1='
PS1=$'\\[\E[32m\\]\\u@\\h \\D{%Y-%m-%d %H:%M:%S}:\\n\\[\E[33m\\]\\w\\n\\[\E[35m\\]\\$\\[\E[0m\\] '
Thanks in advance
Messages sorted by:
Reverse Date,
Date,
Thread,
Author