Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: regarding login prompt
- X-seq: zsh-users 11622
- From: arnuld <geek.arnuld@xxxxxxxxx>
- To: "ZSH Users" <zsh-users@xxxxxxxxxx>
- Subject: Re: regarding login prompt
- Date: Fri, 13 Jul 2007 19:40:34 +0530
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PGXNoXa2hbCJBFQCF5nHZaed5+S+yewlvEyr+hgiZ0FDWhjIxajR3X5SY7E5ebuXixLbqViGfNdUWhmUwFR4smwDK/Bq0+XcQFEMYuV6iJGynu0lF0sveys+OX4zyESpJZc2zo12NtrjipvPoL6UMdQeeMoboWCBvtWJtgTH9hc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=X5ogW8+tdUsvReYXym7YuUuoK43B7BqY99Wv+cN63zlOzPWBnhffW7txjaqm6qjeWBS8ZKxXg3E8yZ4oilElRQcBK8yOy+MPyAdu0o0085sKlj4xQ5bdBz9QPzGlKC9a5SRvTr6hDoGGq0LxUXkopVaBHAQtAFI0pbf8QoW1i34=
- In-reply-to: <200707131301.l6DD1pFF018924@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <ecc395cb0707130555n2b2a1622r2875d90727997e15@xxxxxxxxxxxxxx> <200707131301.l6DD1pFF018924@xxxxxxxxxxxxxx>
On 7/13/07, Peter Stephenson <pws@xxxxxxx> wrote:
See PROMPT EXPANSION in the zshmisc manual page. The simplest answer is
PS1='[%n%m %~]%# '
but note (i) as I've written it you get a "%" rather than a "$", which
is the zsh convention
ok, i will go with zsh convention, the % :-)
(ii) this will show the entire directory path with
~ substitution and you might want e.g. only the last few segments. The
manual will help you tailor it further.
i got it from man page: PS1="{%n@%m %1~} %# " :-)
hey Peter, how can i make it coloured like i have in BASH:
{%n@%m %1~} -- > red colour
%# --> blue colour
--
http://arnuld.blogspot.com/
-- people say RMS is arrogant and when i emailed him about some question i
had, he politely said "please help us by calling the whole system as
GNU/Linux, we need this help". only then i knew people mean "please
from RMS == arrogant", quite funny thing IMO. --
Messages sorted by:
Reverse Date,
Date,
Thread,
Author