chiark / gitweb /
bin/wakey.zsh: Refactor the logic in `__wakey_precmd'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 20 Apr 2020 12:17:02 +0000 (13:17 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 20 Apr 2020 12:24:52 +0000 (13:24 +0100)
commit6131a2527bbb25d0f007005d6bf5541095a1d9e2
tree36b5221467a2e77c47e4928660a4da0bd2f54a64
parent0b69235c37663429003691a815b78c645d42f783
bin/wakey.zsh: Refactor the logic in `__wakey_precmd'.

Split it into two sections: one to decide whether to report a
notification, and a second to actually do it.

The logic for the first stage is going to become more complicated, and
this avoids having to have two copies of the notification code.
bin/wakey.zsh