mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
Merge 983ef7c8d1 into f6a7bbf81a
This commit is contained in:
commit
c3d8fbc95c
1 changed files with 13 additions and 0 deletions
|
|
@ -350,12 +350,25 @@ prompt_aws() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# VRF Profile
|
||||||
|
# Display current VRF name
|
||||||
|
prompt_vrf() {
|
||||||
|
if ((${+commands[ip]} )); then
|
||||||
|
VRF=$(ip vrf identify)
|
||||||
|
[[ -z "$VRF" ]] && return
|
||||||
|
prompt_segment green black "${VRF:gs/%/%%}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
## Main prompt
|
## Main prompt
|
||||||
build_prompt() {
|
build_prompt() {
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
prompt_status
|
prompt_status
|
||||||
prompt_virtualenv
|
prompt_virtualenv
|
||||||
prompt_aws
|
prompt_aws
|
||||||
|
prompt_vrf
|
||||||
prompt_context
|
prompt_context
|
||||||
prompt_dir
|
prompt_dir
|
||||||
prompt_git
|
prompt_git
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue