[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]
Re: shell under emacs
- To: emacspeak@xxxxxxxxxxx
- Subject: Re: shell under emacs
- From: Phil's Free <philsfree@xxxxxxxxxxx>
- Date: Tue, 14 Mar 2006 23:13:10 +0000
- Delivered-To: priestdo@xxxxxxxxxxx
- Delivered-To: emacspeak@xxxxxxxxxxx
- In-Reply-To: <87d5gpc638.fsf@xxxxxxxxxxx>
- List-Help: <mailto:emacspeak-request@xxxxxxxxxxx?subject=help>
- List-Post: <mailto:emacspeak@xxxxxxxxxxx>
- List-Subscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=subscribe>
- List-Unsubscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=unsubscribe>
- Old-Return-Path: <philsfree@xxxxxxxxxxx>
- Resent-Date: Tue, 14 Mar 2006 18:11:46 -0500 (EST)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <GwdsR.A.tJH.y20FEB@xxxxxxxxxxx>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
- User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050602)
Robert D. Crawford a écrit :
> "mooncar@xxxxxxxxxxx" <mooncar@xxxxxxxxxxx> writes:
>
>
>>Hi! I have installed emacs with speech support,now it works well,but
>>the boy who is using that tells me he needs to use the command M-x
>>shell, in emacs. Is it possible to recall the commands that he have
>>just issued, like in the linux shell out of emacs?now he must re-type
>>the commands... I have tryied to find a solution but I don't use that
>>program-I only installed and tryied if it's working- so if someone can
>>help... thanks in advance, veronica
>
>
> In shell mode, you can move point around in the buffer. You can go to
> any previous line and hit return at the end of the command line to
> re-execute the command.
>
> Alternatively, you can look at the bash man page to see what switch is
> needed in the definition of the command prompt to give the number of the
> command in history. Then, if you know that 3 commands ago you used the
> same command that you need now, you can look at what the command number
> is in your prompt, subtract 3 and use !command-number (that is,
> ecxclamation point followed by the command number).
In bash, there exist some shortcuts as the following ones :
!my_previous_command
run "my_previous_command" with the same arguments as it used at its last
execution
!!
run the last command again with the same arguments
!-2
run the penultimate command (command 3 if you launch the 5th command)
>
> One other solution is to use the history command to get a list of the
> previous 500 commands. pipe this through grep to search for a
> particular string.
You also can use the emacs mode under bash to search a previous command
invocation with any pattern introduced by C-r that you can repeat (or
modify) again with C-r until you get the searched string.
Regards.
--
Phil
-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"
Emacspeak Files |
Subscribe |
Unsubscribe | Search