zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: zsh login going remarkably slow
Date: Tue, 10 May 2005 03:06:21 +0000	[thread overview]
Message-ID: <1050510030621.ZM11836@candle.brasslantern.com> (raw)
In-Reply-To: <20050509192122.961794BEAE@ws1-1.us4.outblaze.com>

On May 9,  2:21pm, Fafa Hafiz Krantz wrote:
}
} for this other box, it takes a long time for the prompt to appear.

"This other box" doesn't happen to be an NFS client using the zsh
installation mounted from the first box, does it?

} last but not the least, i was wondering if anyone could help me
} split my prompt line up.

It sounds to me as if you need to go learn some more general things
about shells and how command lines are parsed.  The fact that you
have to ask about this ...

} if it's due to the whitespace below PROMPT,

... indicates that you lack a basic understanding of the syntax.

Yes, it's due to the whitespace.

} well i kinda want it there because it's superneat.

You can't always get what you want.

The closest you're going to get is this:

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

(Note I've deleted the backslashes from the ends of the lines.)


  parent reply	other threads:[~2005-05-10  3:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-09 19:21 Fafa Hafiz Krantz
2005-05-10  0:36 ` Eric Mangold
2005-05-10  3:06 ` Bart Schaefer [this message]
2005-05-10  9:26 Fafa Hafiz Krantz

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=1050510030621.ZM11836@candle.brasslantern.com \
    --to=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).