summaryrefslogtreecommitdiff
path: root/src/etc/skel/.bashrc
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-29 09:58:03 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-29 09:58:03 +0200
commit4b10ca4d4ff254766961274a019ef6228d750aec (patch)
tree9f3dac1a529d71eaf28e0a7d3c2a61cd0fdc4056 /src/etc/skel/.bashrc
parent8b47a1ff532d54e5f49120dbdfab5dd5225702cb (diff)
downloadvyos-1x-4b10ca4d4ff254766961274a019ef6228d750aec.tar.gz
vyos-1x-4b10ca4d4ff254766961274a019ef6228d750aec.zip
T5234: add bash prompt identifier for given Network namespace
Diffstat (limited to 'src/etc/skel/.bashrc')
-rw-r--r--src/etc/skel/.bashrc4
1 files changed, 2 insertions, 2 deletions
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