Make prompt also detect running in a container
This commit is contained in:
parent
b5dedf6d56
commit
0ad3647ddc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user