From: Jai Dayal <dayalsoap@gmail.com>
To: Alp Aker <alptekin.aker@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: emacs + ansi-term on OSX
Date: Fri, 24 Jan 2014 10:54:02 -0500 [thread overview]
Message-ID: <CAMJ-YiSwEDwCiBe6ykvfFGNFLM5DE+cf6K+a4aVHc7R9u1ADTA@mail.gmail.com> (raw)
In-Reply-To: <CACxch4qgdiP95ERadhBiuC-wQ0+5smVsJHwJP+ZQfuLjGYrrvQ@mail.gmail.com>
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.)
>
prev parent reply other threads:[~2014-01-24 15:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-24 6:19 emacs + ansi-term on OSX Jai Dayal
2014-01-24 15:51 ` Alp Aker
2014-01-24 15:54 ` Jai Dayal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMJ-YiSwEDwCiBe6ykvfFGNFLM5DE+cf6K+a4aVHc7R9u1ADTA@mail.gmail.com \
--to=dayalsoap@gmail.com \
--cc=alptekin.aker@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).