Quote:
Originally posted by glock19
I added what you said, so now it looks like:
Code:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
export USERNAME BASH_ENV PATH
LFS=$LFS:/mnt/lfs
export LFS
When I type echo $LFS I get nothing in response.
|
Depending on the way you login, sometimes .bash_profile isn't read (say when you open an xterm that file isn't read normally speaking unless you make it a socalled login shell by adding a special option to xterm).
Add it to .bashrc as well to cover all bases (at least one of those two files is read no matter what kind of terminal you open).
Btw, don't write LFS=$LFS:/mnt/lfs but just LFS=/mnt/lfs
If you were to add this to both files, then you could end up with:
LFS=/mnt/lfs:/mnt/lfs
And when you go install something, $LFS won't work as expected since the /mnt/lfs:/mnt/lfs directory doesn't exist.