esac
}
-case ${DISPLAY-nil},${WINDOWID-nil} in
- nil,* | *,nil) ;;
+case ${DISPLAY+t},${WINDOWID+t},${__mdw_precmd_hook+t},${mdw__preexec_hook+t} in
+ t,t,t,t) ;;
*)
- if whence notify-send >/dev/null 2>&1; then
- preexec_functions+=(__wakey_preexec)
- precmd_functions+=(__wakey_precmd)
+ if __mdw_programp notify-send ; then
+ __mdw_addhook __mdw_preexec_hook __wakey_preexec
+ __mdw_addhook __mdw_precmd_hook __wakey_precmd
fi
;;
esac