README.adoc: fix zsh integration snippet

This commit is contained in:
2020-10-01 15:24:25 +02:00
parent 5451eba2a3
commit 2d6d0582a1

View File

@@ -59,7 +59,13 @@ sdn-navigate () {
[ -z "$cd" ] || cd "$cd"
[ -z "$insert" ] || LBUFFER="$LBUFFER$insert "
[ -z "$helper" ] && break
# Workaround for "zsh: suspended (tty output)" when invoking
# helpers after the terminal has been resized while running sdn
command true
eval "exec </dev/tty; $helper" || break
done
zle reset-prompt
# ... possibly zle-line-finish
}