chiark / gitweb /
dot/zshrc: Inhibit line editing when terminal is `dumb'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 16 Nov 2017 12:29:35 +0000 (12:29 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 16 Nov 2017 12:29:35 +0000 (12:29 +0000)
dot/zshrc

index d280c14f662c4ff86cd91852f0659f1bfd5e8d18..4dc0fb7b531ac0e563484f82c7c6b69665ec6e06 100644 (file)
--- a/dot/zshrc
+++ b/dot/zshrc
@@ -30,6 +30,8 @@ fi
 ###--------------------------------------------------------------------------
 ### Line editing.
 
 ###--------------------------------------------------------------------------
 ### Line editing.
 
+case $TERM in dumb) unsetopt zle ;; esac
+
 bindkey -e
 
 for w in \
 bindkey -e
 
 for w in \