1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-01 07:00:23 +01:00

[Agnoster theme] Rename AGNOSTER_PROMPT to AGNOSTER_PROMPT_SEGMENTS

This commit is contained in:
apodkutin
2018-10-31 20:12:57 +01:00
committed by Aleksandr Podkutin
parent 1ab87862ff
commit 8b9ab37042

View File

@@ -31,7 +31,7 @@
### Segments of the prompt default order declaration
typeset -aHg AGNOSTER_PROMPT=(
typeset -aHg AGNOSTER_PROMPT_SEGMENTS=(
prompt_status
prompt_virtualenv
prompt_aws
@@ -253,7 +253,7 @@ prompt_aws() {
## Main prompt
build_prompt() {
RETVAL=$?
for prompt_segment in "${AGNOSTER_PROMPT[@]}"; do
for prompt_segment in "${AGNOSTER_PROMPT_SEGMENTS[@]}"; do
[[ -n $prompt_segment ]] && $prompt_segment
done
}