From 23f2b4503c9d7697e382fed550d3bf846b81dd5c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 19 Sep 2008 12:58:46 +0000 Subject: users/13252 and elsewhere: Frank Terbeck plus tweaks: add VCS_Info function system --- Functions/VCS_Info/VCS_INFO_check_com | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Functions/VCS_Info/VCS_INFO_check_com (limited to 'Functions/VCS_Info/VCS_INFO_check_com') 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 +## Distributed under the same BSD-ish license as zsh itself. + +setopt localoptions NO_shwordsplit + +(( ${+commands[$1]} )) && [[ -x ${commands[$1]} ]] && return 0 +return 1 -- cgit v1.2.3