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

View File

@ -59,7 +59,13 @@ sdn-navigate () {
[ -z "$cd" ] || cd "$cd" [ -z "$cd" ] || cd "$cd"
[ -z "$insert" ] || LBUFFER="$LBUFFER$insert " [ -z "$insert" ] || LBUFFER="$LBUFFER$insert "
[ -z "$helper" ] && break [ -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 eval "exec </dev/tty; $helper" || break
done
zle reset-prompt zle reset-prompt
# ... possibly zle-line-finish # ... possibly zle-line-finish
} }