summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-29 09:50:32 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-29 09:50:32 +0200
commitcfe369180686604b4153d6faa936e7e1a858d30d (patch)
treeae183103b8534d63cfd656efd1957a6a8ec3bd89
parent684c4e043f61bb186a954ffa2b49e3ebb6838a6f (diff)
downloadvyos-1x-cfe369180686604b4153d6faa936e7e1a858d30d.tar.gz
vyos-1x-cfe369180686604b4153d6faa936e7e1a858d30d.zip
T5234: extend color prompt with VRF instance name
-rw-r--r--src/etc/skel/.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/skel/.bashrc b/src/etc/skel/.bashrc
index 6feb613af..c59ef0318 100644
--- a/src/etc/skel/.bashrc
+++ b/src/etc/skel/.bashrc
@@ -57,7 +57,7 @@ if [ -n "$force_color_prompt" ]; then
fi
if [ "$color_prompt" = yes ]; then
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H${VRF:+(vrf:$VRF)}\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\H${VRF:+:$VRF}:\w\$ '
fi