summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index dc6c809..73da287 100644
--- a/bashrc
+++ b/bashrc
@@ -57,7 +57,8 @@ red_b='\[\033[1;31m\]'
nrjobs='$([ \j -gt 0 ] && echo " [\j]")'
gitps='$(type -t __git_ps1 &>/dev/null && __git_ps1)'
[ -n "$debian_chroot" ] && chroot="[$debian_chroot] "
-PS1=${TITLE}"($user_color\u$reset@$green\h$reset) $chroot\W$gitps$nrjobs $red\\\$$reset > "
+[ -n "$container" ] && container="[$container] "
+PS1=${TITLE}"($user_color\u$reset@$green\h$reset) $container$chroot\W$gitps$nrjobs $red\\\$$reset > "
# history
HISTCONTROL='ignoredups:erasedups'