zsh's `powermeli` theme: fixed detection of zsh sourcing or execution of the theme

master
Meliurwen 2 years ago
parent 7176298a22
commit 77c72ff39a
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 2
      zsh/.config/zsh/plugins/powermeli.zsh-theme

@ -92,7 +92,7 @@ prompt_git() {
prompt_segment "$SEGMENT_SEPARATOR" yellow black prompt_segment "$SEGMENT_SEPARATOR" yellow black
# If sourced or executed by zsh, then overwrite with an associative array # If sourced or executed by zsh, then overwrite with an associative array
# https://zsh.sourceforge.io/Doc/Release/Parameters.html#Array-Parameters # 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" OLDIFS="$IFS"
IFS=" IFS="
" "

Loading…
Cancel
Save