dot/zshrc: Fix arguments to the hooks.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 25 Apr 2020 01:17:57 +0000 (02:17 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 25 Apr 2020 01:20:22 +0000 (02:20 +0100)
commite1ec1acd154ab7c68d62f0af1e036d9ef5583779
tree2cc0752a7c7d8976cd8c05de67ec7d0360a4a7e2
parent1e3bad2152a2d4e383b45a419e7c0d7ce3423ff8
dot/zshrc: Fix arguments to the hooks.

The `precmd' hook doesn't take an argument -- what would it say anyway?
The `preexec' hook should have the command, only without newlines,
because otherwise the newline aborts the set-title control sequence,
and (a) the title doesn't get changed after all, and (b) lines after the
first get spammed to the terminal output.

Fortunately, `zsh' provides a version of the command without the
newlines, which looks purpose-built for this application.
dot/zshrc