Personal dotfiles
git clone
Log | Files | Refs | LICENSE

commit b200830892b64035ee5c6c7478a911c6f134f630
parent 912af71d5f36b5c7a11fcc66ce85b99f60ad8c39
Author: Chris Bracken <>
Date:   Wed,  7 Feb 2018 09:59:00 -0800

Disable echonl after every command

The Dart VM conflates echo and echonl (probably because Windows does),
so when it disables then re-enables echo, it also enables echonl, which
results in an extraneous newline echoed back after every command.


Until fixed, this adds a precmd that disables echonl after every command
on the assumption that I never want newlines echoed back at me. I
suspect that's right 99.9% of the time, but that once in awhile, this
will cause me no end of confusion. Shoganai.

M.zshrc | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -32,6 +32,14 @@ zstyle :compinstall filename "$HOME/.zshrc" autoload -Uz compinit && compinit zstyle ':completion:*' menu select +# The Dart VM conflates echo (echo typed characters) and echonl (echo +# newlines). Until fixed, turn off echonl after every command. +# +# See: +precmd() { + stty -echonl +} + # Current git branch (for prompt) git_branch() { local branch="$(git rev-parse --abbrev-ref HEAD 2> /dev/null)"