all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Can I make "cd" in shell work like eshell?
@ 2014-08-27  9:40 C K Kashyap
  2014-08-27 15:06 ` Doug Lewan
  0 siblings, 1 reply; 3+ messages in thread
From: C K Kashyap @ 2014-08-27  9:40 UTC (permalink / raw
  To: help-gnu-emacs@gnu.org

Hi,
I am doing some windows development these days for which I find "shell"
more suitable than eshell.
However, when I do cd and visit a directory in shell and then I do c-x - f,
it does not open in the cd'ed location. How can I make that happen?
Regards,
Kashyap


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Can I make "cd" in shell work like eshell?
  2014-08-27  9:40 Can I make "cd" in shell work like eshell? C K Kashyap
@ 2014-08-27 15:06 ` Doug Lewan
  2014-08-28  6:35   ` C K Kashyap
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Lewan @ 2014-08-27 15:06 UTC (permalink / raw
  To: C K Kashyap, help-gnu-emacs@gnu.org

Shell mode tries its best to keep track of your current directory, but it can't always.

You can synch shell-mode with the shell inside it by M-<RET> (M-x shell-resync-dirs).

Be careful though! You have to be at a shell prompt since emacs runs a command and then uses its output to figure out the current directory.

,Doug
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224 or ext 4335

"This is a slow pup," he said continuing his ascent.


> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of C K Kashyap
> Sent: Wednesday, 2014 August 27 05:40
> To: help-gnu-emacs@gnu.org
> Subject: Can I make "cd" in shell work like eshell?
> 
> Hi,
> I am doing some windows development these days for which I find "shell"
> more suitable than eshell.
> However, when I do cd and visit a directory in shell and then I do c-x
> - f,
> it does not open in the cd'ed location. How can I make that happen?
> Regards,
> Kashyap

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can I make "cd" in shell work like eshell?
  2014-08-27 15:06 ` Doug Lewan
@ 2014-08-28  6:35   ` C K Kashyap
  0 siblings, 0 replies; 3+ messages in thread
From: C K Kashyap @ 2014-08-28  6:35 UTC (permalink / raw
  To: Doug Lewan; +Cc: help-gnu-emacs@gnu.org

Thanks Doug ... for some reason I find that things are working on its own.
Shell cd is indeed changing the current dir :)

regards,
Kashyap


On Wed, Aug 27, 2014 at 8:36 PM, Doug Lewan <dougl@shubertticketing.com>
wrote:

> Shell mode tries its best to keep track of your current directory, but it
> can't always.
>
> You can synch shell-mode with the shell inside it by M-<RET> (M-x
> shell-resync-dirs).
>
> Be careful though! You have to be at a shell prompt since emacs runs a
> command and then uses its output to figure out the current directory.
>
> ,Doug
> Douglas Lewan
> Shubert Ticketing
> (201) 489-8600 ext 224 or ext 4335
>
> "This is a slow pup," he said continuing his ascent.
>
>
> > -----Original Message-----
> > From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> > [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> > Behalf Of C K Kashyap
> > Sent: Wednesday, 2014 August 27 05:40
> > To: help-gnu-emacs@gnu.org
> > Subject: Can I make "cd" in shell work like eshell?
> >
> > Hi,
> > I am doing some windows development these days for which I find "shell"
> > more suitable than eshell.
> > However, when I do cd and visit a directory in shell and then I do c-x
> > - f,
> > it does not open in the cd'ed location. How can I make that happen?
> > Regards,
> > Kashyap
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-28  6:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27  9:40 Can I make "cd" in shell work like eshell? C K Kashyap
2014-08-27 15:06 ` Doug Lewan
2014-08-28  6:35   ` C K Kashyap

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.