diff options
Diffstat (limited to 'zshfunc/vcs-info/VCS_INFO_check_com')
-rw-r--r-- | zshfunc/vcs-info/VCS_INFO_check_com | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zshfunc/vcs-info/VCS_INFO_check_com b/zshfunc/vcs-info/VCS_INFO_check_com new file mode 100644 index 0000000..7895241 --- /dev/null +++ b/zshfunc/vcs-info/VCS_INFO_check_com @@ -0,0 +1,4 @@ +VCS_INFO_check_com () { #{{{ + (( ${+commands[$1]} )) && [[ -x ${commands[$1]} ]] && return 0 + return 1 +} |