Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176949

Re: An Embarrassing Progblem

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: An Embarrassing Progblem
Date 2017-01-23 21:00 +0100
Message-ID <t2SWt-2b0-3@gated-at.bofh.it> (permalink)
References <t2RH5-1v8-27@gated-at.bofh.it> <t2RQJ-1wu-5@gated-at.bofh.it> <t2SMO-26Q-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jan 23, 2017 at 02:43:12PM -0500, S. P. Molnar wrote:
> I added PS1="\u@\h >" to the end of .bashrc and sourced the file -  it 
> worked, in that terminal.  However, if I open a new terminal (I'm using 
> xfce4-terminal) the prompt is back to the corrupted one!

Normally when you open a terminal, it *should* run a non-login shell.
If your account's shell is bash, then the non-login shell will read
~/.bashrc.

However, some people configure their window managers to run a login
shell when they open a terminal.  In that case, if your account's
shell is bash, the login shell will read ~/.bash_profile which in
turn *should* be configured to read ~/.bashrc.

So, make sure ~/.bash_profile or ~/.profile sources or dots in
~/.bashrc.  Debian's default ~/.profile does so, but if you created
a ~/.bash_profile, that overrides ~/.profile, so you'd have to check
your own work.

> Rebooting the computer doesn't solve the problem.

Not a surprise.

> I have initiated a search of the entire file system for PS1= , although 
> I suspecct it take a while.

You said the new prompt has p4 in it, which makes me suspect that you
have installed something (like, say, p4) which modified your ~/.bashrc
to change the prompt.  Or it might have modified /etc/bash.bashrc which
Debian's bash also uses.  It's worth looking at it.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

An Embarrassing Progblem "S. P. Molnar" <s.molnar@sbcglobal.net> - 2017-01-23 19:40 +0100
  Re: An Embarrassing Progblem "der.hans" <deb-user@LuftHans.com> - 2017-01-23 19:50 +0100
    Re: An Embarrassing Progblem "S. P. Molnar" <s.molnar@sbcglobal.net> - 2017-01-23 20:50 +0100
      Re: An Embarrassing Progblem Greg Wooledge <wooledg@eeg.ccf.org> - 2017-01-23 21:00 +0100
      Re: An Embarrassing Progblem "der.hans" <deb-user@LuftHans.com> - 2017-01-23 21:00 +0100
        Re: An Embarrassing Progblem Kent West <westk@acu.edu> - 2017-01-23 21:20 +0100
        Re: An Embarrassing Progblem <tomas@tuxteam.de> - 2017-01-23 21:20 +0100
          Re: An Embarrassing Progblem Ben Caradoc-Davies <ben@transient.nz> - 2017-01-23 22:30 +0100
            Re: An Embarrassing Progblem "S. P. Molnar" <s.molnar@sbcglobal.net> - 2017-01-24 13:00 +0100

csiph-web