From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-users@sunsite.auc.dk
Cc: Jerry Peek <jpeek@jpeek.com>
Subject: Re: zsh tips for "UNIX Power Tools"
Date: Sat, 4 Mar 2000 16:38:01 +0000 [thread overview]
Message-ID: <1000304163801.ZM24423@candle.brasslantern.com> (raw)
In-Reply-To: =?iso-8859-1?Q?=3C20000304130547=2ED1805=40picard=2Efranken?= =?iso-8859-1?Q?=2Ede=3E?= =?iso-8859-1?Q?Comments=3A_In_reply_to_Thomas_K=F6hler_=3Cjean-luc=40pica?= =?iso-8859-1?Q?rd=2Efranken=2Ede=3E?= =?iso-8859-1?Q?________=22Re=3A_zsh_tips_for_=22UNIX_Power_Tools=22=22_?= =?iso-8859-1?Q?=28Mar__4=2C__1=3A05pm=29?=
On Mar 4, 1:05pm, Thomas Köhler wrote:
} Subject: Re: zsh tips for "UNIX Power Tools"
}
} Of course [...]
I put in a lot of extra details for Jerry's benefit.
} > # requires setopt prompt_subst
} > PROMPT="$PROMPT"'%{$(show_mode INSERT >/dev/tty)%}'
} >
} > Now the prompt itself runs the initial show_mode, and you don't need any
} > background jobs run from precmd.
}
} Well, OK so far - but the indication still ends up in the wrong place
show_mode is a function; fiddle with it. E.g. pass the number of lines
to move up as a second argument, or pass that second argument only when
in the prompt and don't move up a line when $# > 1, or ...
} One last thing: Bart, thanks for your cool and incredible tips on this
} list. I learned much from you!
My pleasure.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~2000-03-04 16:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-02 16:13 Jerry Peek
2000-03-03 11:39 ` Thomas Köhler
2000-03-03 14:17 ` Jerry Peek
2000-03-03 23:05 ` Bruce Stephens
2000-03-04 5:40 ` Bart Schaefer
2000-03-04 12:05 ` Thomas Köhler
2000-03-04 16:38 ` Bart Schaefer [this message]
2000-03-04 17:18 ` Bart Schaefer
2000-03-04 12:31 ` Bruce Stephens
2000-03-04 11:43 ` Thomas Köhler
2000-03-04 12:43 ` Bruce Stephens
2000-03-04 12:22 ` Vincent Lefevre
2000-03-04 18:12 ` Bart Schaefer
2000-03-05 23:19 ` Vincent Lefevre
2000-03-06 0:30 ` Bart Schaefer
2000-03-06 20:51 ` Thomas Köhler
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=1000304163801.ZM24423@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=jpeek@jpeek.com \
--cc=zsh-users@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).