T
T
Tolik2014-08-06 12:17:16
zsh
Tolik, 2014-08-06 12:17:16

How to change PS1 in zsh?

echo $PS1 prints what you want. But if I enter export PS1="anytext> " then nothing works. Look here:

tolik@LapTop ~ % PS1="asd"
tolik@LapTop ~ % export PS1="asd" 
tolik@LapTop ~ % echo $PS1
%K{blue}%[email protected]%m%k %B%F{cyan}%(4~|...|)%3~%F{white} %# %b%f%k
I understand that PS1 is done a little differently in this shell, but even without any "special" characters, nothing works. Help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tolik, 2014-08-06
@Diel

Solution: comment out three lines in .zshrc
#autoload -Uz promptinit
#promptinit
#prompt adam1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question