Use `which` instead of `type -t` to detect a command.
Apart from "-t" not being supported by zsh's `type`, it does not appear to work with bash, too. Fixes: http://github.com/defunkt/hub/issues/#issue/47
Showing
想要评论请 注册 或 登录
Apart from "-t" not being supported by zsh's `type`, it does not appear to work with bash, too. Fixes: http://github.com/defunkt/hub/issues/#issue/47