1## vim:ft=zsh2## Written by Frank Terbeck <ft@bewatermyfriend.org>3## Distributed under the same BSD-ish license as zsh itself.45setoptlocaloptionsNO_shwordsplit67case $1in8(/*)9 [[ -x $1 ]] && return010 ;;
11(*)12(( ${+commands[$1]} )) && return013esac1415return116