From 0bc761d68250c3aa11bbf64627b79efffdfe40cc Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 7 Jan 2023 20:20:36 +0100 Subject: bashrc: indicate if running in a container --- bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' -- cgit v1.2.3