From 13255c5e744317c7de8f1af59dede723fcd5698b Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sun, 28 Aug 2022 01:31:45 -0500 Subject: [PATCH] Add prefix to prompt when we're in a toolbox Hooray more functionality! Hooray kinoite/silverblue! --- base/.profile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/.profile b/base/.profile index acacf730..baa21d5c 100755 --- a/base/.profile +++ b/base/.profile @@ -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