[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs current directory when shell commands change
From: |
David Strozzi |
Subject: |
Re: emacs current directory when shell commands change |
Date: |
Mon, 23 Apr 2007 17:38:22 -0700 |
Hi,
Thanks to those who gave help with this. I still haven't reached
Nirvana though. I'd like to use 'regular' shell mode (M-x shell),
unless some other mode is preferred for doing serious bash shelling.
I put this in my .emacs:
(setq shell-cd-regexp "cd.*")
This should make the shell think anything starting with cd is a change
dir. command. In my .bashrc I set an alias:
alias cder='cd ~/elvis/runs'
From shell, cder indeed works (i.e., the shell thinks I'm in the new
dir). However, emacs always thinks I've cd'ed to ~. The same thing
happens if I write out the full path and don't use ~ in the alias def.
So it seems emacs is interpreting all these aliases as being
equivalent to a bare 'cd', which of course moved to ~. Maybe I
mis-understood what shell-cd-regexp does....
The functionality I want is having a bunch of 5 or 6 char aliases that
take me to some god-forsaken dirs buried in the filesystem, and I want
emacs to know where I'm going. How do I do this?
Thanks again,
Dave
- Re: emacs current directory when shell commands change,
David Strozzi <=