help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: repeat the last single shell command


From: Nicolas Richard
Subject: Re: repeat the last single shell command
Date: Thu, 18 Jul 2013 16:12:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Tassilo Horn <tsdh@gnu.org> writes:
> You can capture the last shell command using an advice, and have a
> command for repeating it, though.

Since a history is maintained accross invocations, there must be a
variable holding that, already. Its name is shell-command-history ; its
(car) holds the last command.

-- 
Nico.



reply via email to

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