From: Alp Aker <alptekin.aker@gmail.com>
To: Jai Dayal <dayalsoap@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: emacs + ansi-term on OSX
Date: Fri, 24 Jan 2014 10:51:53 -0500 [thread overview]
Message-ID: <CACxch4qgdiP95ERadhBiuC-wQ0+5smVsJHwJP+ZQfuLjGYrrvQ@mail.gmail.com> (raw)
In-Reply-To: <CAMJ-YiQOdW98pDP0xN_c_0dWC861px83CtEgRvUY-n6vGDwMbQ@mail.gmail.com>
> 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.)
next prev parent reply other threads:[~2014-01-24 15:51 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 [this message]
2014-01-24 15:54 ` Jai Dayal
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=CACxch4qgdiP95ERadhBiuC-wQ0+5smVsJHwJP+ZQfuLjGYrrvQ@mail.gmail.com \
--to=alptekin.aker@gmail.com \
--cc=dayalsoap@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).