zsh-users
 help / color / mirror / code / Atom feed
* Hi, can someone help me to convert my bash PS1 to zsh?
@ 2022-03-21 16:06 Frank Schwidom
  2022-03-21 16:57 ` Mikael Magnusson
  0 siblings, 1 reply; 10+ messages in thread
From: Frank Schwidom @ 2022-03-21 16:06 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-03-22  0:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 16:06 Hi, can someone help me to convert my bash PS1 to zsh? Frank Schwidom
2022-03-21 16:57 ` Mikael Magnusson
2022-03-21 17:47   ` Frank Schwidom
2022-03-21 17:59     ` Mikael Magnusson
2022-03-21 18:51       ` Roman Perepelitsa
2022-03-21 21:43         ` Bart Schaefer
2022-03-22  0:36           ` Frank Schwidom
2022-03-21 18:11     ` Bart Schaefer
2022-03-21 18:17       ` Frank Schwidom
2022-03-21 18:56     ` Lawrence Velázquez

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).