if [ $TERM = "screen" ]; then
setopt extended_glob
preexec () {
local CMD=${1[(wr)^(*=*|sudo|-*)]}
# if [[ $CMD -eq "man" ]]; then
# CMD+=" ${2[(wr)^(*=*|sudo|-*)]}"
# fi
echo -n "\ek$CMD\e\\"
}
fi