mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-13 00:39:46 +00:00
20 lines
403 B
Bash
20 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
|