emacs_shells_multiple_types

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: Open more than 1 shell in emacs
From: Alex Schroeder <alex@gnu.org>
Date: 22 Feb 2001 22:57:08 +0100

"David Masterson" <dmasters@rational.com> writes:

> What if you want two (or more) different types of shells (say, Bash and
> Command.com) with two different sets of environment variables and you want to
> work with them side-by-side (say, for testing purposes).

Untested:

(defun my-new-msdos-shell ()
  (let ((explicit-shell-file-name "cmd"))
    (when (get-buffer "*shell*")
      (set-buffer (get-buffer "*shell*"))
      (rename-uniquely))
    (shell)))

(defun my-new-bash-shell ()
  (let ((explicit-shell-file-name "/usr/bin/bash"))
    (when (get-buffer "*shell*")
      (set-buffer (get-buffer "*shell*"))
      (rename-uniquely))
    (shell)))

===

From: Eli Zaretskii <eliz@is.elta.co.il>
Newsgroups: comp.emacs
Subject: Re: Open more than 1 shell in emacs
Date: Sun, 25 Feb 2001 09:24:25 +0200

Alex Schroeder wrote:
> 
> (defun my-new-bash-shell ()
>   (let ((explicit-shell-file-name "/usr/bin/bash"))
                                    ^^^^^^^^^^^^^^^

Not a very good idea for non-Posix platforms.


===




the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu