From: Shawn Leas <sleas@ixion.honeywell.com>
To: Matthew Lovell <lovell@fc.hp.com>
Cc: Zsh Users List <zsh-users@math.gatech.edu>
Subject: Re: PWD in prompt
Date: Fri, 5 Feb 1999 17:36:55 -0600 (CST) [thread overview]
Message-ID: <Pine.GHP.4.05.9902051733440.20826-100000@ixion.honeywell.com> (raw)
On Fri, 5 Feb 1999, Matthew Lovell wrote:
>
> I'm having an odd problem with zsh-3.1.5. My prompt definition is
> basically as follows:
>
> # set the prompt
> PROMPT=$(print "\%n\@\%m:\%~\\n%1v%% ");
Why the print statement?? Here's my whole setup, uncluding
xterm title setting...
PROMPT='%B[%l] %n@%m %1v %b(%B%h%b)%B %t%b '
if [[ $TERM = xterm || $TERM = vs100 || $TERM_PROGRAM = OS_Terminal ]] ; then
RPROMPT="%B(%~)%b%{^[]2;%n@%m:[%(7c|...%6c|%7c)]^G%}"
else
RPROMPT="%B(%~)%b"
fi
# RPROMPT="%B(%~)%b%{^[]2;%n@%m:[%(7c|...%6c|%7c)]^G%}"
function precmd {
setopt no_ksh_arrays local_options
case "${${$(uptime)##*"load average: "}%%,*}" in
0.[0-4]*) psvar[1]='%^)' ;;
0.[5-9]*) psvar[1]=';^]' ;;
1.*) psvar[1]=';^|' ;;
2.*) psvar[1]=':^|' ;;
3.*) psvar[1]=':^(' ;;
[45].*) psvar[1]=':^O' ;;
[67].*) psvar[1]='|-P' ;;
*) psvar[1]='|-(' ;;
esac
}
-Shawn
<=========== America Held Hostage ===========>
Day 2207 for the poor and the middle class.
Day 2226 for the rich and the dead.
715 days remaining in the Raw Deal.
<============================================>
next reply other threads:[~1999-02-05 23:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-05 23:36 Shawn Leas [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-02-06 0:14 Matthew Lovell
1999-02-05 18:06 Matthew Lovell
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=Pine.GHP.4.05.9902051733440.20826-100000@ixion.honeywell.com \
--to=sleas@ixion.honeywell.com \
--cc=lovell@fc.hp.com \
--cc=zsh-users@math.gatech.edu \
/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).