Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Help help, prompt problems here!



Hello!

Thank you, Bart and Peter, for all your worthy input!
I've come up with this prompt, and it's working just fine.

But how can I turn it:

PROMPT=$'%{\e[01;34m%}(%{\e[22;34m%}%n%{\e[01;30m%}@%{\e[22;34m%}%m%{\e[01;34m%}
)%{\e[01;34m%}%{\e[01;34m%}(%{\e[22;34m%}%D{%H:%M}%{\e[01;30m%}:%{\e[22;34m%}%D{
%m/%d/%y}%{\e[01;34m%})%{\e[01;30m\e[00m%}%{\n%}%{\e[01;34m%}(%{\e[22;34m%}%#%{\
e[01;30m%}:%{\e[22;34m%}%~%{\e[01;34m%})%{\e[01;30m\e[00m%} '

Into split lines like these, just to make it look prettier?

PROMPT=$'%{\e[01;34m%}(%{\e[22;34m%}%n%{\e[01;30m%}@'\
       $'%{\e[22;34m%}%m%{\e[01;34m%})%{\e[01;34m%}%{\e[01;34m%}('\
       $'%{\e[22;34m%}%D{%H:%M}%{\e[01;30m%}:%{\e[22;34m%}%D{%m/%d/%y}'\
       $'%{\e[01;34m%})%{\e[01;30m\e[00m%}%{\n%}%{\e[01;34m%}('\
       $'%{\e[22;34m%}%#%{\e[01;30m%}:%{\e[22;34m%}%~%{\e[01;34m%})'\
       $'%{\e[01;30m\e[00m%} '

That one returns this error:
/etc/zshrc:35: command not found: %{^[[22;34m%}%m%{^[[01;34m%})%{^[[01;34m%}%{^[[01;34m%}(

> Returning to the original problem -- it seems likely that either (a)
> there's something in /etc/zshenv that you're not telling us about, and
> that something is stuck, possibly waiting for input, until you hit the
> ctrl+c, or (b) `whoam` itself is stuck for some reason, and when you
> hit ctrl+c it fails, so the "if" fails, so "prompt elite2 red" is not
> executed.

Yeah, back to the original problem. I still have it.
I don't have an zshenv, just zshrc and a zlogout containing 'clear'.

> You could find out which of these things is happening by placing a
> "set -x" at the top of /etc/zshenv, or by running "zsh -x".

I'll try that, thanks!

--

Fafa Hafiz Krantz
  Research Designer @ http://www.home.no/barbershop
  Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf



-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



Messages sorted by: Reverse Date, Date, Thread, Author