[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: "Robert D. Crawford" <rdc1x@xxxxxxxxxxx>
- Date: Tue, 14 Mar 2006 11:02:35 -0600
- Delivered-To: priestdo@xxxxxxxxxxx
- Delivered-To: emacspeak@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: <rdc1x@xxxxxxxxxxx>
- Resent-Date: Tue, 14 Mar 2006 12:02:38 -0500 (EST)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <N1tl0C.A.CrF.ucvFEB@xxxxxxxxxxx>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
- User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)
"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).
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.
If you would like a shell that acts more like a traditional shell, in
that you can use eshell. You can then use the arrow keys to get
previous commands just like in a standard bash terminal.
I hope this helps,
rdc
--
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Robert D. Crawford rdc1x@xxxxxxxxxxx
All generalizations are false, including this one.
-- Mark Twain
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-----------------------------------------------------------------------------
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