afa8dc46ecb1babda7db8fb8228224e8975e95f4
Author Carlo Dapor <catull@gmail.com> Committer Carlo Dapor <catull@gmail.com> Date 2018-09-25 19:46 UTC
Message Fix agnoster initial diagnostic error
This PR fixes the runtime error that displays this:
```log
prompt_status:2: symbols: attempt to assign array value to non-array
```.
It trips over a local array which is not properly declared.
Diff 1 diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
2 index d1a69c5600c6e9d5a9597abc32ed1257d2175b65..18496c2bcc276d6ee5987f64167a50d6d8c80c5f 100644
3 --- a/themes/agnoster.zsh-theme
4 +++ b/themes/agnoster.zsh-theme
5 @@ -212,8 +212,8 @@ prompt_virtualenv() {
6 # - am I root
7 # - are there background jobs?
8 prompt_status() {
9 - local symbols
10 - symbols=()
11 + local -a symbols=()
12 +
13 [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
14 [[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
15 [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"