bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I never use the history aspect of M-. and always want just the last arg


From: Dan Jacobson
Subject: I never use the history aspect of M-. and always want just the last arg I typed
Date: Sat, 10 Jul 2004 02:33:25 +0800

Examining
$ history |tail -n 4|head -n 3
 5548  dlocate -l wmaker
 5549  apt-cache show wmaker
 5550  apt-get install --print-uris wmaker
we note I have used ^R to recall the bulk of the last two lines, and
then manually typed "wmaker", as bash's M-. has been decided to recall
the last item from where we were in history, and there is no key to
recall the last argument absolutely, short of a ^K beforehand and ^Y later.

I need a M-. that gives me the last arg no matter what.
I.e., no matter if I used ^R or not.

I never use the history aspect of M-. and always want just the last
arg I typed.

Am I "SOL" for the remaining decade, or might there be some runtime
shell variable hack to determine what M-. will recall, or some other
workaround or addition?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]