[lfs-support] PS1 for user lfs
bruce.dubbs at gmail.com
Fri Apr 20 13:54:01 PDT 2012
Philippe Delavalade wrote:
> I'm building svn-9812 ; my host is debian/wheezy ; I encounter for the
> first time a little problem in 4.4.
> When becoming user lfs and after having passed the command
> source .bash_profile
> I don't obtain the right prompt ; all variables are correct except PS1
> which is
> Maybe it's not important (and I think so) but nevertheless, I fear that
> this uncorrect value can hide other problems...
Lets see what you have for ~/.bashrc and ~/.bash_profile
~/.bash_profile should be one line:
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
The -i starts with an empty envronment and then sets PS1 when running a new
instance of bash.
More information about the lfs-support