|
|
@ -807,12 +807,12 @@ prompt_detect_virt() {
|
|
|
|
if [[ "$virt" == "none" ]]; then
|
|
|
|
if [[ "$virt" == "none" ]]; then
|
|
|
|
if [[ "$(ls -di / | grep -o 2)" != "2" ]]; then
|
|
|
|
if [[ "$(ls -di / | grep -o 2)" != "2" ]]; then
|
|
|
|
virt="chroot"
|
|
|
|
virt="chroot"
|
|
|
|
"$1_prompt_segment" "$0" "$2" "yellow" "$DEFAULT_COLOR" "$virt"
|
|
|
|
"$1_prompt_segment" "$0" "$2" "$DEFAULT_COLOR" "yellow" "$virt"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
;
|
|
|
|
;
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
"$1_prompt_segment" "$0" "$2" "yellow" "$DEFAULT_COLOR" "$virt"
|
|
|
|
"$1_prompt_segment" "$0" "$2" "$DEFAULT_COLOR" "yellow" "$virt"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|