Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to trigger the death of zsh(3.0.5)
- X-seq: zsh-users 1850
- From: Mircea Damian <dmircea@xxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: How to trigger the death of zsh(3.0.5)
- Date: Thu, 8 Oct 1998 22:44:42 +0300
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <981008115831.ZM20784@xxxxxxxxxxxxxxxxxxxxxxx>; from Bart Schaefer on Thu, Oct 08, 1998 at 11:58:31AM -0700
- References: <19981008204953.A9624@xxxxxxxx> <981008115831.ZM20784@xxxxxxxxxxxxxxxxxxxxxxx>
On Thu, Oct 08, 1998 at 11:58:31AM -0700, Bart Schaefer wrote:
> That function is bound by default to ESC . and ESC _ in zsh. Rebinding to
> the bash equivalent is as easy as:
>
> bindkey '\C\My' insert-last-word
Ok but how about the order?
ESC 1 ESC . will give the last argument when in bash it means the first
one.
So I need to do something like insert the argument
n-x where n is the total number of words on the previous command(x is the
number after ESC).
Q: Is there a way to set the separator(or a list of separators) when doing backward-kill-word? For example if I'm typing:
% cd /usr/src^W
I would like to have
% cd /usr/
not
% cd
(this is also bash's behaviour)
PS: Maybe I'm too tired now but:
Script started on Thu Oct 8 22:43:27 1998
dmircea@secu:~% bindkey '\C\My' insert-last-word
dmircea@secu:~% bindkey | grep insert-last-word
"\M-^Y" insert-last-word
"^[." insert-last-word
"^[_" insert-last-word
dmircea@secu:~% exit
Script done on Thu Oct 8 22:44:00 1998
--
Mircea Damian
Network Manager
dmircea@xxxxxxxxx, dmircea@xxxxxx, dmircea@xxxxxxxx
MD65-RIPE, MD2225, MD1-6BONE
Phone: +40-1-4115246
Messages sorted by:
Reverse Date,
Date,
Thread,
Author