Add prefix to prompt when we're in a toolbox

Hooray more functionality!
Hooray kinoite/silverblue!
This commit is contained in:
Salt 2022-08-28 01:31:45 -05:00
parent fd5b3bf7ea
commit 13255c5e74

View File

@ -253,6 +253,8 @@ _ps1bash() {
# Alert if in an SSH session
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
_prefix="${fg_bold}${fg_red}${_hostname}${r}${fg_red}:${r}${_prefix}"
elif [ -n "$TOOLBOX_PATH" ]; then
_prefix="${fg_bold}${fg_magenta}toolbox${r}${fg_magenta}:${r}${_prefix}"
elif [ "$USER" != "salt" ]; then
_prefix="${fg_bold}${fg_yellow}$USER${r}${fg_yellow}:${r}${_prefix}"
fi