help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to specify the current directory when I start a shell in aquama


From: Xah Lee
Subject: Re: how to specify the current directory when I start a shell in aquamacs
Date: Tue, 7 Jul 2009 23:54:04 -0700 (PDT)
User-agent: G2/1.0

emacs does not inherit the current dir from the shell you launch it.

when you start a shell in emacs, the current path is the same as the
current buffer's file if there's one. For example, when you are in
emacs, if the current buffer is a file at ~/dir1/dir2, or the current
buffer is dired at ~/dir/dir2, then when you do Alt+x shell, your
shell starts in that dir.

  Xah
∑ http://xahlee.org/

☄

On Jul 7, 5:18 pm, n179911 <n179...@gmail.com> wrote:
> Hi,
>
> I start aquamacs in a directory, say '~/dir1/dir2'
> and then in aquamacs, i do 'M-x shell'
>
> and it launches a shell, but why when I do 'pwd' in the shell, it goes
> back to my HOME, i.e ~?
>
> Is there anyway to configure aquamacs to start a shell when I do M-x
> shell to the directory of  where I launched aquamacs?
>
> In my above example, it would be ~/dir1/dir2?
>
> Thank you.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]