From 2affd69042b3b4be09ce82b72f30774ea13178d8 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sun, 29 May 2022 10:15:37 +0200 Subject: [PATCH] The check for `git` command availability was too strict in the zsh's `powermeli` theme --- zsh/.config/zsh/plugins/powermeli.zsh-theme | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/.config/zsh/plugins/powermeli.zsh-theme b/zsh/.config/zsh/plugins/powermeli.zsh-theme index 64e36eb..4f5ab94 100755 --- a/zsh/.config/zsh/plugins/powermeli.zsh-theme +++ b/zsh/.config/zsh/plugins/powermeli.zsh-theme @@ -29,7 +29,7 @@ prompt_segment() { } # Get First Ancestor Process -# Requires: +# Requires: # It returns: # If TARGET_PNAME not found returns nothing # Note: `/proc` is not guaranteed to be on all unices (BSD, Solaris, Mac...) @@ -79,7 +79,7 @@ prompt_context() { } prompt_git() { - if ! command -pv git > /dev/null 2>&1; then + if ! command -v git > /dev/null 2>&1; then return fi @@ -90,7 +90,7 @@ prompt_git() { git_str="" if [ -n "$git_status" ]; then prompt_segment "$SEGMENT_SEPARATOR" yellow black - # If sourced or executed by zsh 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 [ -z ${ZSH_VERSION+x} ] && set -A git_status ${(f)"${git_status}"} OLDIFS="$IFS"