* Re: alias hl='$(history -n -2 -2) '
[not found] ` <EXCHANGE03bJjyve2q70000ee73@exchange03.csr.com>
@ 2006-02-20 13:17 ` zzapper
0 siblings, 0 replies; only message in thread
From: zzapper @ 2006-02-20 13:17 UTC (permalink / raw)
To: zsh-workers; +Cc: zsh-users
Peter Stephenson <pws@csr.com> wrote in news:EXCHANGE03bJjyve2q70000ee73
@exchange03.csr.com:
> You could get the history part working better with
>
> alias hl='eval "$(history -n -2 -2)" '
>
That fixes it, thnx
>
> I presume you're trying to avoid bang-history for some reason. If you're
> not wedded to aliases you could use a zle function to retrieve specific
> stuff from the history.
>
It's just that !-2 is a bit a pain to type (sorry)!
--
zzapper
Success for Techies
http://SuccessTheory.com/ vim, zsh & success tips
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-20 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <Xns976FBAFEAC071zzappergmailcom@80.91.229.5>
[not found] ` <EXCHANGE03bJjyve2q70000ee73@exchange03.csr.com>
2006-02-20 13:17 ` alias hl='$(history -n -2 -2) ' zzapper
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).