[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: An Embarrassing Progblem




On Mon, Jan 23, 2017 at 2:09 PM, <tomas@tuxteam.de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Jan 23, 2017 at 07:58:01PM +0000, der.hans wrote:
> Am 23. Jan, 2017 schwätzte S. P. Molnar so:
>
> moin moin Stephen,
>
> >
> >On 01/23/2017 01:38 PM, der.hans wrote:
> >>grep PS1 ~/.bashrc ~/.bash_profile ~/.profile
> >
> >Thanks for the answers.
> >
> >I thought that i had the solution.  Grep showed me that ps1 was
> >only in .bashrc.  After making a copy of .bashrc I removed the
> >entire if ... fi section that contained PS1.
> >
> >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!
>
> Ah, xfce might have a(n annoying) default setting. KDE had a similar
> problem for a while. If so searching your home dir for the change won't
> help as the default was either in a system config file or baked into the
> binaries.




XFCE has a menu shell option:

Menu -> Edit -> Preferences -> General Tab -> “Run command as login shell”

that as I understand it, if clicked, causes XFCE shells to bypass .bashrc in favor of .bash_profile.

But my understanding is not to be trusted; I found this info at http://www.rebrik.info/blog/?p=74

-- 
Kent


--
Kent West                    <")))><
Westing Peacefully - http://kentwest.blogspot.com

Reply to: