From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alp Aker Newsgroups: gmane.emacs.help Subject: Re: emacs + ansi-term on OSX Date: Fri, 24 Jan 2014 10:51:53 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1390578731 15177 80.91.229.3 (24 Jan 2014 15:52:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jan 2014 15:52:11 +0000 (UTC) Cc: help-gnu-emacs To: Jai Dayal Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 24 16:52:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6j3K-00052v-Rx for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jan 2014 16:52:18 +0100 Original-Received: from localhost ([::1]:47366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6j3K-0005xv-HT for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jan 2014 10:52:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6j34-0005xo-JH for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 10:52:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6j2w-0003hD-UG for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 10:52:02 -0500 Original-Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:49151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6j2w-0003fC-MT for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 10:51:54 -0500 Original-Received: by mail-we0-f182.google.com with SMTP id w62so2874924wes.13 for ; Fri, 24 Jan 2014 07:51:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2nZ2kayzBQxH0V6qmGxRNV+KJNtQBixKNXKN0DEIoTA=; b=fF54hc9p/5TVUaxAiGnN7bLXBzpq+RwFtve5z+w7mjyqyTSxCmWoQPqqBXCLJwZkJ9 hNEsCiLcjLNd5g5PnZsfP4CLRz0zgilfQ3z6IclbeLagD3U6cGXEL9NYogZyBiS3xFsF 13VF5KJXaD4QztfZARMGLDflEAecUoYDPBZLMmd93PNPSJkNKecsVDWY2sI9BNK/xhDZ Z7GAuIzGdO4t6J7eb9p4yu5AJ9UXyQgQc2A6oFqebcycYFzqIJUxY7BwaxH6JEhVGhq8 22IVNB9gdLOnvib250g9G35KuzhOWtwZ5N2bZujVX6K2dhYzaTmAou6rGSbNIPx/qE67 obxA== X-Received: by 10.180.164.174 with SMTP id yr14mr378615wib.18.1390578713065; Fri, 24 Jan 2014 07:51:53 -0800 (PST) Original-Received: by 10.194.238.162 with HTTP; Fri, 24 Jan 2014 07:51:53 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95621 Archived-At: > 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.)