all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@web.de>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: help-gnu-emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: shell prompt undesired characters
Date: Wed, 8 Apr 2009 20:15:52 +0200	[thread overview]
Message-ID: <2C9D0EB0-90D2-405D-A325-936FE6305F52@web.de> (raw)
In-Reply-To: <8763hf2frd.fsf@stats.ox.ac.uk>


Am 08.04.2009 um 19:53 schrieb Dan Davison:

> I've tried without any
> ~/.emacs

I mentioned ~/.emacs_bash – it only customises bash when run inside  
*shell* buffer. And this file is more useful than a car because it  
can switch off so many things that are fine in a (dumb) terminal  
emulation which GNU Emacs can do better.

> and ~/.bashrc, on emacs22, and I still get those initial
> characters.

Bash uses much more files, see 'man bash' or other bash documentation  
(obviously there are good reasons why I don't use bash by default).

> They're not coming from $PS1, so where are they coming from?


Can you also check the meaning of PS1 in GNU Emacs's *shell* buffer?  
In a terminal I have

	PS1='\e[34;47;1m\j-\[\033[0;32m\]ttyp\[\033[0;31m\]://\[\033[0;32m\] 
pete\[\033[0;31m\]:5\[\033[0;34m\]${PWD/$HOME//~pete}\e[33;46;1m \! /\ 
\ \[\033[0m\]'

in *shell* buffer it's

	PS1='\h:\w \u\$ '

Thanks to ~/.emacs_bash, which does not contain ELisp but shell code:

	PATH=$(defaults read "${HOME}/.MacOSX/environment" PATH)
	MANPATH=$(defaults read "${HOME}/.MacOSX/environment" MANPATH)
	PS1='\h:\w \u\$ '
	unset DYLD_LIBRARY_PATH
	BASH_ENV=${HOME}/Library/init/bash/aliases.mine

--
Greetings

   Pete

They that can give up essential liberty to obtain a little temporary  
safety deserve neither liberty nor safety.
		-Benjamin Franklin, Historical Review of Pennsylvania.







  reply	other threads:[~2009-04-08 18:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08 17:00 shell prompt undesired characters Dan Davison
2009-04-08 17:25 ` Peter Dyballa
2009-04-08 17:53   ` Dan Davison
2009-04-08 18:15     ` Peter Dyballa [this message]
2009-04-11  0:03     ` Alex Bennee
2009-04-11  0:49       ` Dan Davison
2009-04-08 17:28 ` Peter Dyballa

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2C9D0EB0-90D2-405D-A325-936FE6305F52@web.de \
    --to=peter_dyballa@web.de \
    --cc=davison@stats.ox.ac.uk \
    --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.
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.