need a -l login shell to source profiles and colorize PS1

This commit is contained in:
Dustin Kirkland 2024-01-09 07:32:18 -06:00
commit 4a2ebccb62
2 changed files with 6 additions and 2 deletions

View file

@ -41,6 +41,8 @@ if [ ! -e "$FLAG" ]; then
touch "$FLAG"
fi
[ -n "$SHELL" -a -x "$SHELL" ] && exec "$SHELL" || exec /bin/sh
# This needs to be a -l login shell, in order to source profiles
# and colorize the prompt
[ -n "$SHELL" -a -x "$SHELL" ] && exec "$SHELL" -l || exec /bin/sh -l
# vi: syntax=sh ts=4 noexpandtab