summaryrefslogtreecommitdiff
path: root/src/cstore/cstore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cstore/cstore.cpp')
-rw-r--r--src/cstore/cstore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp
index 4f19ebf..7af50f5 100644
--- a/src/cstore/cstore.cpp
+++ b/src/cstore/cstore.cpp
@@ -3080,7 +3080,8 @@ Cstore::get_shell_prompt(const string& level)
if (lvl.length() > 0) {
lvl = " " + lvl;
}
- return ("[edit" + lvl + "]\\n\\u@\\H# ");
+ // show VRF name on prompt and add : if VRF name is not none
+ return ("[edit" + lvl + "]\\n\\u@\\H${VRF:+:$VRF}# ");
}
// escape the single quotes in the string for shell