From 77c72ff39a360b779586c65034c24b8c0097f9f6 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Thu, 9 Jun 2022 20:45:51 +0200 Subject: [PATCH] zsh's `powermeli` theme: fixed detection of zsh sourcing or execution of the theme --- zsh/.config/zsh/plugins/powermeli.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.config/zsh/plugins/powermeli.zsh-theme b/zsh/.config/zsh/plugins/powermeli.zsh-theme index 4f5ab94..d3b5481 100755 --- a/zsh/.config/zsh/plugins/powermeli.zsh-theme +++ b/zsh/.config/zsh/plugins/powermeli.zsh-theme @@ -92,7 +92,7 @@ prompt_git() { prompt_segment "$SEGMENT_SEPARATOR" yellow black # If sourced or executed by zsh, then overwrite with an associative array # https://zsh.sourceforge.io/Doc/Release/Parameters.html#Array-Parameters - [ -z ${ZSH_VERSION+x} ] && set -A git_status ${(f)"${git_status}"} + [ -z ${ZSH_VERSION+x} ] || set -A git_status ${(f)"${git_status}"} OLDIFS="$IFS" IFS=" "