all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ~/.emacs_bash setting PS1
@ 2008-02-05  1:41 Samuel Karl Peterson
  2008-02-05  9:09 ` Sven Joachim
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Samuel Karl Peterson @ 2008-02-05  1:41 UTC (permalink / raw)
  To: help-gnu-emacs

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.  I
don't need for it to work in shell-mode.  The info manual says that
shell-mode reads the file ~/.emacs_SHELL depending on the shell used
(I use bash).  However, placing the above line into the ~/.emacs_bash
file doesn't seem to work.  Oddly enough, I can type 'exit' and then
I'll have a shell with the proper PS1 variable set.

Anyone have any advice for me?
-- 
Sam Peterson
skpeterson At nospam ucdavis.edu
"if programmers were paid to remove code instead of adding it,
software would be much better" -- unknown


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-02-08  2:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05  1:41 ~/.emacs_bash setting PS1 Samuel Karl Peterson
2008-02-05  9:09 ` Sven Joachim
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.