about summary refs log tree commit diff
path: root/Functions/VCS_Info/VCS_INFO_check_com
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_check_com')
-rw-r--r--Functions/VCS_Info/VCS_INFO_check_com8
1 files changed, 8 insertions, 0 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_check_com b/Functions/VCS_Info/VCS_INFO_check_com
new file mode 100644
index 000000000..6d65360d5
--- /dev/null
+++ b/Functions/VCS_Info/VCS_INFO_check_com
@@ -0,0 +1,8 @@
+## vim:ft=zsh
+## Written by Frank Terbeck <ft@bewatermyfriend.org>
+## Distributed under the same BSD-ish license as zsh itself.
+
+setopt localoptions NO_shwordsplit
+
+(( ${+commands[$1]} )) && [[ -x ${commands[$1]} ]] && return 0
+return 1