Update readme, typos, use login shell in chroot, add user profile in chroot
This commit is contained in:
parent
930389c7c8
commit
a5dacebc3d
5 changed files with 88 additions and 15 deletions
20
dont_use_here/profile
Normal file
20
dont_use_here/profile
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Setup Path
|
||||
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||
export POSIX_ME_HARDER=1
|
||||
|
||||
# Setup Shell Prompt
|
||||
if [ "$(whoami)" == "root" ]; then
|
||||
export PS1=$(hostname)"-chroot# "
|
||||
else
|
||||
export PS1=$(hostname)"-chroot$ "
|
||||
fi
|
||||
|
||||
# Replace TERM with xterm because netbsd-curses doesn't include alacritty
|
||||
if [ "$TERM" == "alacritty" ]; then
|
||||
export TERM=xterm
|
||||
fi
|
||||
|
||||
# load profile
|
||||
for file in $(ls /etc/profile.d); do
|
||||
. /etc/profile.d/$file
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue