Commit afa8dc46 authored by Carlo Dapor's avatar Carlo Dapor
Browse files

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.
parent 627393ea
......@@ -212,8 +212,8 @@ prompt_virtualenv() {
# - am I root
# - are there background jobs?
prompt_status() {
local symbols
symbols=()
local -a symbols=()
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment