From: Sven Joachim <svenjoac@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: ~/.emacs_bash setting PS1
Date: Tue, 05 Feb 2008 10:09:06 +0100 [thread overview]
Message-ID: <87ejbr93d9.fsf@gmx.de> (raw)
In-Reply-To: o368x20w56y.fsf@pc14.cs.ucdavis.edu
On 2008-02-05 02:41 +0100, Samuel Karl Peterson wrote:
> I set my PS1 prompt so that it highlights the hostname portion of my
> PS1 string. I use different colors on different hosts so I have a
> better visual cue as to which host I'm actually logged into (had some
> mishaps in the past with running the wrong command on the wrong
> machine). It looks like this:
>
> export PS1="[\u@\[\033[1;35m\]\h\[\033[0m\] \W]$ "
>
> Unfortunately, in Emacs shell-mode, this doesn't show up correctly.
Do you know you can change that? Quoting (Info "(emacs)Shell Options"):
,----
| If you want Shell mode to handle color output from shell commands,
| you can enable ANSI Color mode. Here is how to do this:
|
| (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
`----
Sven
next prev parent reply other threads:[~2008-02-05 9:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 1:41 ~/.emacs_bash setting PS1 Samuel Karl Peterson
2008-02-05 9:09 ` Sven Joachim [this message]
2008-02-05 15:44 ` Samuel Karl Peterson
2008-02-05 9:25 ` Peter Dyballa
2008-02-05 10:27 ` Ehud Karni
2008-02-06 15:05 ` Stefan Monnier
2008-02-06 17:32 ` Samuel Karl Peterson
2008-02-08 2:57 ` Stefan Monnier
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=87ejbr93d9.fsf@gmx.de \
--to=svenjoac@gmx.de \
--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).