README.adoc: fix zsh integration snippet
This commit is contained in:
parent
5451eba2a3
commit
2d6d0582a1
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user