dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit e726e554027f6acd8accf28ce5ac8b9ee7df2d64
parent 93ca46cf62b8281263759f9c91292626335ece3e
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu, 15 Jul 2021 01:29:42 -0400

Add implementation of `watch` to .shrc

Diffstat:
M.config/shrc | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/.config/shrc b/.config/shrc @@ -26,3 +26,7 @@ alias mbsync='mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc' alias config='git --git-dir="$HOME"/docs/proj/dotfiles --work-tree="$HOME"' alias spawn='st > /dev/null 2>&1 &' alias compose='setxkbmap -option compose:caps' + +# Universal "watch" equivalent +# Invoke like "watch <seconds> <cmd> +watch() { interval="$1"; ([ -z "$interval" ] && shift;) || interval=1; while true; do clear; "$@"; sleep "$interval"; done; }