mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-24 16:12:53 +00:00
21 lines
403 B
Bash
21 lines
403 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
cat > ~/.bash_profile << "EOF"
|
||
|
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
|
||
|
EOF
|
||
|
|
||
|
cat > ~/.bashrc << "EOF"
|
||
|
set +h
|
||
|
umask 022
|
||
|
LFS=/mnt/lfs
|
||
|
LC_ALL=POSIX
|
||
|
LFS_TGT=$(uname -m)-lfs-linux-gnu
|
||
|
PATH=/usr/bin
|
||
|
if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
|
||
|
PATH=$LFS/tools/bin:$PATH
|
||
|
CONFIG_SITE=$LFS/usr/share/config.site
|
||
|
export LFS LC_ALL LFS_TGT PATH CONFIG_SITE
|
||
|
EOF
|
||
|
|
||
|
source ~/.bash_profile
|