add PS1 incase of bash useage

This commit is contained in:
Oliver Atkinson 2023-12-14 02:52:57 -07:00
parent 1abf7f48e2
commit 0842e2d353

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Adapted from LinuxConfig.org
# GNU GPL v3.0+
CMDS="bash mkdir touch mv rm ls grep cat vim"
CMDS="bash clear mkdir touch mv rm ls grep cat vim"
USER=$1
CMDS=($CMDS) # convert to array
@ -18,6 +18,7 @@ CHROOT=$(eval echo ~$USER)
mkdir -p $CHROOT$CHROOT # make new home dir
chown $USER:$USER $CHROOT$CHROOT
echo "PS1='\[\e[38;5;202m\][\[\e[38;5;45m\]\h\[\e[38;5;202m\]:\[\e[38;5;40m\]\W\[\e[38;5;202m\]]\\$ \[\e[0m\]'" > $CHROOT$CHROOT/.bashrc
# ChrootDirectory requires these permissions
chown root:root $CHROOT