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

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

Re: emacs + ansi-term on OSX


From: Jai Dayal
Subject: Re: emacs + ansi-term on OSX
Date: Fri, 24 Jan 2014 10:54:02 -0500

Thanks for the reply. The weird thing is, when I do it on a Linux machine,
I don't have this problem: when invoking ansi-term, it executes the script
automagically. I'm just at a loss as to how to do it on the Mac.

Thanks.


On Fri, Jan 24, 2014 at 10:51 AM, Alp Aker <alptekin.aker@gmail.com> wrote:

> > I have compiled and installed gnu emacs from source (I am not using
> > Aquamacs or EmacsForMac), however, when I run M-x ansi-term, it does not
> > run my .profile script (Mac doesn't use .bashrc). How can I setup the
> > ansi-term to run my .profile for each bash shell it runs? I typically
> have
> > multiple ansi-shells.
>
> You're used to the fact that the default terminal emulator on OS X starts
> a login shell; you'll get the behavior you want by ensuring that bash is
> invoked with the "--login" switch.  No straightforward way to do that that
> I see, but I don't use this functionality.  One way would be to redefine
> the function ansi-term so that it passes the proper parameter to
> term-ansi-make-term.   (BTW, it looks like you can just pass the desired
> buffer name as an argument to ansi-term, rather than renaming after that
> fact.)
>


reply via email to

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