[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does eshell have something similar to bash's yank-last-arg
From: |
Barman Brakjoller |
Subject: |
Re: Does eshell have something similar to bash's yank-last-arg |
Date: |
5 Mar 2003 07:02:45 -0800 |
kai.grossjohann@uni-duisburg.de (Kai Großjohann) wrote
> > Does eshell have something similar to bash's yank-last-arg:
>
> I use this:
>
> (defun kai-eshell-insert-last-word (n)
> (interactive "p")
> (insert (car (reverse
> (split-string
> (eshell-previous-input-string (- n 1)))))))
>
> Then I add a hook to bind the above to M-..
This must be my eshell-lucky day, excellent answers to both my
eshell-problems! Maybe I should go and buy a lottery ticket. :)