From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Re: How to change the bash prompt for ansi-term? Date: Thu, 09 Apr 2015 06:32:10 +0200 Organization: GNU's Not UNIX! Message-ID: <86k2xl53cl.fsf@kcals2.maillard.im> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428555212 5258 80.91.229.3 (9 Apr 2015 04:53:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2015 04:53:32 +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 Thu Apr 09 06:53:22 2015 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 1Yg4Sv-00085O-QT for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 06:53:21 +0200 Original-Received: from localhost ([::1]:56169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg4Su-0007Rz-LY for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 00:53:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg48Y-0003xR-F1 for help-gnu-emacs@gnu.org; Thu, 09 Apr 2015 00:32:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yg48U-0001uV-F1 for help-gnu-emacs@gnu.org; Thu, 09 Apr 2015 00:32:18 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg48U-0001u3-7l for help-gnu-emacs@gnu.org; Thu, 09 Apr 2015 00:32:14 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 62C0B2096B for ; Thu, 9 Apr 2015 00:32:07 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Thu, 09 Apr 2015 00:32:11 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=maillard.im; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=yCNg9 rYClf4RlbuZ6hsnqKXHayQ=; b=TbjgUW46E/4kdd4OZjC0XNb9QIOgEF2JSTHnO f+qNN8y05silfvhUz0rxr1bmrpt8U6mttsekTFceqh0gEFc75ULDsJTO6Gsx3bjg zhP/WKlFTkbNGerrb4Q73AKXzolwLwU7a/52JRxD/K32YT5kA23bAv7OXh+EzO8X ZXgKqs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=yCNg9rYClf4RlbuZ6hsnqKXHayQ=; b=OEoCL vBrFnGV3BDg3sx/ySVL+JheL0z7VfuSlEHC3Pjck1YdmSdZyeinlLb8n3kjyyWoT 3vKvYEd1oQb6jAOsnuxVTaMX6JP7qvRLzZDg34SybrAuy+oUoB2ufyCJXBp+D6Rt dDv8C+wlYEzYYwhTsVHQBqGVtWazUNprrRbcA8= X-Sasl-enc: XtVIGyKlo5Us49HyQ+j627qu/67wuHplEtn5kS40CB5C 1428553930 Original-Received: from kcals2.maillard.im (unknown [90.18.57.237]) by mail.messagingengine.com (Postfix) with ESMTPA id A320BC0001D; Thu, 9 Apr 2015 00:32:10 -0400 (EDT) User-Agent: mu4e/0.9.11 Emacs/24.3.1 (gnu/linux) In-reply-to: X-GPG-Key-ID: 0xBA4909B78F04DE1B X-GPG-Key: http://wwwkeys.pgp.net/pks/lookup?search=0xBA4909B78F04DE1B&op=index X-GPG-Fingerprint: 9983 DCA1 1FAC 8DA7 653A F9AA BA49 09B7 8F04 DE1B X-Charlie: #jesuischarlie Jabber-ID: xavier@maillard.im X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.28 X-Mailman-Approved-At: Thu, 09 Apr 2015 00:53:09 -0400 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:103597 Archived-At: Hello Jai, Jai Dayal writes: > Basically, I have in my .bashrc a line that changes the PS1 environment > variable. When I do M-x ansi-term, the terminal doesn't seem to respect > this and the prompt is very long. Any advice? We need more informations: 1. post your PS1 2. did you try with emacs -Q 3. what is your emacs version ? -- Xavier.