summaryrefslogtreecommitdiff
path: root/themes/agnoster.zsh-theme
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-09-26 17:19:59 +0200
committerGitHub <noreply@github.com>2018-09-26 17:19:59 +0200
commita3d13eb76a19bbe18b6b843232695645bd9aa632 (patch)
treecc71c422a1ded08c80b359dc05ccf0eeaa850d5b /themes/agnoster.zsh-theme
parentafa8dc46ecb1babda7db8fb8228224e8975e95f4 (diff)
downloadzsh-a3d13eb76a19bbe18b6b843232695645bd9aa632.tar.gz
zsh-a3d13eb76a19bbe18b6b843232695645bd9aa632.tar.bz2
zsh-a3d13eb76a19bbe18b6b843232695645bd9aa632.zip
fix invalid syntax in old zsh versions
Diffstat (limited to 'themes/agnoster.zsh-theme')
-rw-r--r--themes/agnoster.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index 18496c2bc..71ecf2b36 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -212,7 +212,7 @@ prompt_virtualenv() {
# - am I root
# - are there background jobs?
prompt_status() {
- local -a symbols=()
+ local -a symbols
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"