From 4b10ca4d4ff254766961274a019ef6228d750aec Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 29 May 2023 09:58:03 +0200 Subject: T5234: add bash prompt identifier for given Network namespace --- src/etc/skel/.bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/etc/skel/.bashrc b/src/etc/skel/.bashrc index c59ef0318..ba7d50003 100644 --- a/src/etc/skel/.bashrc +++ b/src/etc/skel/.bashrc @@ -57,9 +57,9 @@ if [ -n "$force_color_prompt" ]; then fi if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H${VRF:+(vrf:$VRF)}\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H${VRF:+(vrf:$VRF)}${NETNS:+(ns:$NETNS)}\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else - PS1='${debian_chroot:+($debian_chroot)}\u@\H${VRF:+:$VRF}:\w\$ ' + PS1='${debian_chroot:+($debian_chroot)}\u@\H${VRF:+:$VRF}${NETNS:+(ns:$NETNS)}:\w\$ ' fi unset color_prompt force_color_prompt -- cgit v1.2.3