[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs current directory when shell commands change directory
From: |
David Strozzi |
Subject: |
emacs current directory when shell commands change directory |
Date: |
Fri, 20 Apr 2007 11:35:14 -0700 |
Hi,
I and others have a minor problem with emacs' shell mode. Suppose you
use commands (namely aliases) that change the current directory.
Emacs doesn't realize the working dir has changed. If one were to
manually type 'cd dir', then 'M-x pwd' tells you the right dir. But
after running an alias to 'cd dir', 'M-x pwd' think you're in the
starting dir. This de-syncs tab completion, file opening, etc from
where you 'really' are in the shell. Of course, the shell correctly
changes the working dir when aliases are run.
Any way around this?
Thanks,
David Strozzi
- emacs current directory when shell commands change directory,
David Strozzi <=