Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Avoid using short_loops syntax in distributed files
- X-seq: zsh-workers 36314
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Avoid using short_loops syntax in distributed files
- Date: Fri, 28 Aug 2015 08:57:01 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=JplbPZ7WyiOOxPbpjc/Kc9lEF3RgwesePj+05VDm/O0=; b=wtwsxK+xwpdViIKD1TdWjmMAqk/cwxeznVsjV12kHUwkye4h7RImni3Ma/zZF2bXJX sYbhHNg8fAUupOnE4D+SeOMth0HU9GETjCx5h8Xs9Y0uNtU7baJw9qEU0AA57hENowmL Kyy4ogVfG7XZHwMuLoboyOM1zYGAavvxg61qjjRrgN2b63sC8wcQI1zqpwgCv3aQu1v7 wolBs9gFVxlHm72cnKsOq3ppcXsE5BZVUT6iTR4EnqA/e6C4wcs+xmAw0FX4cJfm6YNZ EeejZD7BMbb4elxaXvDPS+kxARzuSK5SUIj7+VMqH8TS6awnpq8GbqREuNiX0KjLp/vq iMmQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
36312 reminded me I've been holding on to this patch for a few years.
This is the only remaining instance in the distribution, it would be
nice if I could zcompile my $fpath without doing this:
setopt localoptions
for dir in $fpath; do
if [[ $dir = /usr/* ]]; then
setopt shortloops
else
setopt noshortloops
fi
zrecompile -p $dir.zwc $dir/*(-.) && rm -f $dir.zwc.old
done
---
Functions/Prompts/prompt_bart_setup | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Functions/Prompts/prompt_bart_setup b/Functions/Prompts/prompt_bart_setup
index 45fcffe..22c0c03 100644
--- a/Functions/Prompts/prompt_bart_setup
+++ b/Functions/Prompts/prompt_bart_setup
@@ -178,7 +178,7 @@ prompt_bart_setup () {
typeset -gA fg
# A few extra niceties ...
- repeat 1 case "$1:l" in
+ repeat 1; do case "$1:l" in
(off|disable)
add-zsh-hook -D precmd "prompt_*_precmd"
add-zsh-hook -D preexec "prompt_*_preexec"
@@ -201,7 +201,7 @@ prompt_bart_setup () {
fg[%D]="%F{${4:-default}}"
fg[%@]="%F{${1:-red}}"
;;
- esac
+ esac; done
prompt_bart_ps1
--
2.5.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author