Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Xterm title changing prompt problem: HELP!
- X-seq: zsh-users 2022
- From: Bruce Stephens <b.stephens@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Xterm title changing prompt problem: HELP!
- Date: 15 Jan 1999 11:58:41 +0000
- In-reply-to: Andrew Gallagher's message of "Fri, 15 Jan 1999 11:48:04 +0000"
- References: <Pine.GHP.4.05.9901141611470.26309-100000@xxxxxxxxxxxxxxxxxxx> <slrn79sv71.83r.mason@xxxxxxxxxxxxxxxxxxxxx> <369F2AF4.5FD78841@xxxxxxxxxxxxx>
- Sender: B.Stephens@xxxxxxxxx
Andrew Gallagher <andrew.gallagher@xxxxxxxxxxxxx> writes:
> PROMPT='%? //%n@%B%m%b%//
> %l%1v%!> '
> RPROMPT='(%T, %w)'
> function precmd {
> echo -n "^[]0;//$USER@$HOSTNAME$PWD/ ($UNAME)^G"
> }
Or you can use print, of course. Here's mine:
# Set prompts
PROMPT=$(echo -n '%{\e[39;49m%}%m%#%(1v:+:)%{\e[39;49m%} ')
RPROMPT=$(echo -n ' %{\e[32;40m%}%~%{\e[39;49m%}')
precmd() {
print -Pn '\e]0;%n@%m:%~\a'
if jobs % >& /dev/null; then
psvar=("")
else
psvar=()
fi
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author