Add undercloud indicator to stackrc
In order to improve the end user experience, lets show that the undercloud credentials are currently loaded via the command prompt when a user sources the stackrc. This change defines the PROMPT_COMMAND to prepend '(undercloud) ' to the command prompt. Depends-On: I54c719f7ccc575cb938bf8fda609d0cf0b14bd28 Change-Id: I4b03888209f17b45074373452d8c3989c47cb9b4 Implements-Blueprint: update-ps1-in-rc-files
This commit is contained in:
parent
2e15671e38
commit
3ca27d8d53
|
@ -1,3 +1,5 @@
|
|||
# Indicate that the undercloud credentials have been loaded via command prompt
|
||||
export PROMPT_COMMAND="echo -n '(undercloud) '"
|
||||
# Clear any old environment that may conflict.
|
||||
for key in $( set | awk '{FS="="} /^OS_/ {print $1}' ); do unset $key ; done
|
||||
NOVA_VERSION=1.1
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
When sourcing the stackrc on the undercloud, the command prompt will show
|
||||
that the credentials have been loaded by being prepended with
|
||||
'(undercloud) '. For example, '(undercloud) [stack@undercloud ~]$ '
|
Loading…
Reference in New Issue