From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: promptinit
Date: Fri, 15 Oct 1999 08:43:20 +0000 [thread overview]
Message-ID: <991015084320.ZM22872@candle.brasslantern.com> (raw)
In-Reply-To: <199910141300.PAA14858@beta.informatik.hu-berlin.de>
On Oct 14, 3:00pm, Sven Wischnowsky wrote:
} Subject: PATCH: promptinit
}
} ... or did I miss a patch?
Here are some other misc. fixes ... I don't know whether some of these
might be better handled by changing the perl prompt converter script ...
Also, I really don't like having my precmd stomped on, but I haven't yet
gotten around to fixing that.
Index: Functions/Prompts/prompt_adam2_setup
===================================================================
@@ -4,7 +4,7 @@
cat <<'EOF'
This prompt is color-theme-able. You can invoke it thus:
- prompt adam2 [ simple ] <color1> <color2> <color3>
+ prompt adam2 [ plain ] <color1> <color2> <color3>
where the colors are for the hyphens, current directory, and user@host
bits respectively.
@@ -70,7 +70,7 @@
prompt_char="%(!.#.>)"
- precmd () { prompt_adam2_precmd }
+ precmd () { prompt_adam2_precmd; setopt promptsubst }
preexec () { prompt_adam2_preexec }
}
Index: Functions/Prompts/prompt_fire_setup
===================================================================
@@ -21,7 +21,7 @@
PS1=$COLOR1$GRAD1$COLOR2'%n@%m'$COLOR3$GRAD2$COLOR4$GRAD1$COLOR6' %D{%a %b %d} %D{%I:%M:%S%P} '$NONE'$prompt_newline'$COLOR5'%~/'$GRAD0' '
PS2=$COLOR1$GRAD1$COLOR3$GRAD2$COLOR4$GRAD1$COLOR5'>'$GRAD0' '
- precmd () { }
+ precmd () { setopt promptsubst }
preexec () { }
}
Index: Functions/Prompts/prompt_redhat_setup
===================================================================
@@ -6,7 +6,7 @@
PS1="[%n@%m %1~]\\$ "
PS2="> "
- precmd () { }
+ precmd () { setopt promptsubst }
preexec () { }
}
Index: Functions/Prompts/promptinit
===================================================================
@@ -35,6 +35,7 @@
}
prompt () {
+ emulate -L zsh
local opt preview theme usage old_theme
usage='Usage: prompt <options>
@@ -91,7 +92,7 @@
print "$usage"
return
fi
- prompt_$1_setup "$*[2,-1]"
+ prompt_$1_setup $*[2,-1]
prompt_theme=( $* )
# Avoid screwing up the environment listing
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~1999-10-15 8:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-14 13:00 Sven Wischnowsky
1999-10-14 13:46 ` Adam Spiers
1999-10-15 8:43 ` Bart Schaefer [this message]
1999-10-15 12:47 ` Adam Spiers
1999-10-15 17:01 ` Stomping precmd (not) (Re: PATCH: promptinit) Bart Schaefer
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=991015084320.ZM22872@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.auc.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).