zfs-chroot: remove PROMPT_COMMAND from chroot env

This commit is contained in:
Zach Dykstra 2024-01-27 16:04:01 -06:00
parent cd37f6a2ff
commit cd7d55dae7
No known key found for this signature in database
GPG Key ID: F2F0D4FB7A2861E8
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ fi
notices+=( "\n$(colorize white "*" ) $( colorize orange "/tmp" ) is mounted $( colorize red "read/write")" )
echo -e "${notices[*]}\n"
# will point to a script that doesn't exist in the chroot
unset PROMPT_COMMAND
# regardless of shell, set PS1
# shellcheck disable=SC2086
if ! env "PS1=\[\033[0;33m\]${selected}\[\033[0m\] \w > " chroot ${mountpoint} ${_SHELL} ${chroot_extra} ; then