From: "Fafa Hafiz Krantz" <fteg@london.com>
To: "Bart Schaefer" <schaefer@brasslantern.com>, zsh-users@sunsite.dk
Cc: "Peter Stephenson" <pws@csr.com>
Subject: Re: Help help, prompt problems here!
Date: Mon, 09 May 2005 11:27:45 -0500 [thread overview]
Message-ID: <20050509162745.B7A184BEAD@ws1-1.us4.outblaze.com> (raw)
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
next reply other threads:[~2005-05-09 16:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 16:27 Fafa Hafiz Krantz [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-09 16:59 Fafa Hafiz Krantz
2005-05-10 2:55 ` Bart Schaefer
2005-05-08 19:37 Fafa Hafiz Krantz
2005-05-09 2:35 ` Bart Schaefer
2005-05-09 9:39 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050509162745.B7A184BEAD@ws1-1.us4.outblaze.com \
--to=fteg@london.com \
--cc=pws@csr.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public 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).