From 597d611d7bcba1d03a73cf15f8b25e135fb2f4b2 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Thu, 2 Mar 2017 09:56:38 -0500 Subject: [PATCH] Fix eriner theme errors when git-info not enabled as it was incorrectly testing for the `${+functions[git-info]}`. Closes #142 --- modules/prompt/themes/eriner.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/prompt/themes/eriner.zsh-theme b/modules/prompt/themes/eriner.zsh-theme index 5fd0097..ef4a1b9 100644 --- a/modules/prompt/themes/eriner.zsh-theme +++ b/modules/prompt/themes/eriner.zsh-theme @@ -15,7 +15,7 @@ # jobs are running in this shell will all be displayed automatically when # appropriate. # -# Uses the 'git-info' Zim module. +# Requires the `git-info` zmodule to be included in the .zimrc file. ### Segment drawing # Utility functions to make it easy and re-usable to draw segmented prompts. @@ -90,7 +90,7 @@ prompt_eriner_main() { } prompt_eriner_precmd() { - [[ ${+functions[git-info]} ]] && git-info + (( ${+functions[git-info]} )) && git-info } prompt_eriner_setup() {