diff --git a/q.sh b/q.sh index 6114d5b..3253808 100644 --- a/q.sh +++ b/q.sh @@ -64,6 +64,10 @@ preexec_invoke_exec () { REG=${BASH_REMATCH:1} ARGS=${BUFFER:${#BASH_REMATCH}} + if ! /usr/bin/which $Q_COMMAND; then + return 0 + fi + # If called without register, show help if [[ $REG == "" ]]; then echo "q - registers for zsh"