[OS X Emacs] How to efficiently work with shells/term? drag & drop, history, several instances

David Reitter david.reitter at gmail.com
Thu Sep 22 09:20:02 EDT 2011


Jonathan Groll wrote:

> M-x shell is a 'different' shell written in elisp. It isn't bash or
> whatever you're used to. And since it is written in elisp it also
> works on architectures such as windows.

Sorry, could you please cite a source for that?

In my M-x shell, I get:

>  echo $SHELL
> /bin/bash



And C-h f shell RET gives:

> (shell &optional BUFFER)
> 
> Run an inferior shell, with I/O through BUFFER (which defaults to `*shell*').
> Interactively, a prefix arg means to prompt for BUFFER.
> If `default-directory' is a remote file name, it is also prompted
> to change if called with a prefix arg.
> 
> If BUFFER exists but shell process is not running, make new shell.
> If BUFFER exists and shell process is running, just switch to BUFFER.
> Program used comes from variable `explicit-shell-file-name',
>  or (if that is nil) from the ESHELL environment variable,
>  or (if that is nil) from `shell-file-name'.
> If a file `~/.emacs_SHELLNAME' exists, or `~/.emacs.d/init_SHELLNAME.sh',
> it is given as initial input (but this may be lost, due to a timing
> error, if the shell discards input when it starts up).
> The buffer is put in Shell mode, giving commands for sending input
> and controlling the subjobs of the shell.  See `shell-mode'.
> See also the variable `shell-prompt-pattern'.

(…)



--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!


More information about the MacOSX-Emacs mailing list