README.adoc: fix zsh integration snippet

This commit is contained in:
Přemysl Eric Janouch 2020-10-01 15:24:25 +02:00
parent 5451eba2a3
commit 2d6d0582a1
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 6 additions and 0 deletions

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
}