[OS X Emacs] How to efficiently work with shells/term? drag & drop, history, several instances

Hofert Jan Marius marius.hofert at math.ethz.ch
Sun Sep 25 06:37:48 EDT 2011

On 2011-09-25, at 12:20 , David Reitter wrote:

> On Sep 24, 2011, at 6:53 PM, Hofert Jan Marius wrote:
>> 3) double-clicked on /Users/<myusername>/Library/Preferences/Aquamacs Emacs/Preferences.el [recall that Preferences.el is *empty* [up to the default comments]]
>> 4) this opened Aquamacs and displayed the scratch buffer and Preferences.el (the latter being active)
>> 5) typed in M-x shell RET
>> 6) this opened a new "tab" showing the shell
>> 7) typed in pwd => we are in /Users/<myusername>/Desktop [as expected]
> That's odd, given that you're starting the shell from the Preferences directory.  This is where we'd expect the working directory to be initially (and this works for me).  

ah okay, seems like a very good default. I just also checked: if you open a shell from another shell, then the second is opened "in the same folder" as the first one is in [both pwd show the same directory]. Very good.

> Where does "Desktop" come from?  This is not expected!  (Anything to that effect in your login shell script, e.g., ~/.bashrc / ~/.bash_profile ?

okay, now a bell rings :-)
My .bashrc has a default "cd ~/Desktop" since I almost never go to the home directory but the Desktop. I remember some time ago a colleague called this a really stupid idea -- now I know why :-)

I removed that line from the .bashrc and now it's working as expected! I haven't checked with my own preferences yet, but that should not make a difference. 

*Many thanks* David!

Out of curiosity: in one of your posts, you mentioned Aquamacs 3.*. I couldn't find anything on that version on the website. Is this "new" (alpha?)-version already available?



> I can see from your screenshot that it's trying to complete from within the original directory, as one would expect.
> Try "cd ~/", then try tab completion.
> --
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

More information about the MacOSX-Emacs mailing list