Make prompt also detect running in a container

This commit is contained in:
Kenneth Benzie 2024-07-13 10:11:14 +00:00
parent b5dedf6d56
commit 0ad3647ddc

View File

@ -44,7 +44,7 @@ prompt_fresh_setup() {
fi
local userhost=$USER
if [ "$SSH_CONNECTION" != "" ] || [ "$DISTROBOX_ENTER_PATH" != "" ]; then
if [ "$SSH_CONNECTION" != "" ] || [ "$container" != "" ]; then
local user="$user@%{%F{244}%}%M%{%f%}"
local userhost="$userhost@`hostname`"
fi