aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-01 15:24:25 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-02 15:36:51 +0200
commit2d6d0582a13c8efff113837851b496e9b39e7b23 (patch)
tree392d03cd6795dc2fffd00cd3c9427fcd27702175
parent5451eba2a317600111cd47104101bbec34fc9e54 (diff)
downloadsdn-2d6d0582a13c8efff113837851b496e9b39e7b23.tar.gz
sdn-2d6d0582a13c8efff113837851b496e9b39e7b23.tar.xz
sdn-2d6d0582a13c8efff113837851b496e9b39e7b23.zip
README.adoc: fix zsh integration snippet
-rw-r--r--README.adoc6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.adoc b/README.adoc
index 5daf9ee..f49c8c0 100644
--- a/README.adoc
+++ b/README.adoc
@@ -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
}