Skip to content

Commit

Permalink
[Agnoster theme] Rename AGNOSTER_PROMPT to AGNOSTER_PROMPT_SEGMENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
apodkutin committed Oct 7, 2019
1 parent 1ab8786 commit 8b9ab37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/agnoster.zsh-theme
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 8b9ab37

Please sign in to comment.