From cab4384bdb27f01a340323312cbcd8129d8d0569 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 27 Jun 2009 10:33:51 +0000 Subject: Add vcs-info git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@398 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- zshfunc/vcs-info/VCS_INFO_check_com | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 zshfunc/vcs-info/VCS_INFO_check_com (limited to 'zshfunc/vcs-info/VCS_INFO_check_com') 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 +} -- cgit v1.2.3