commit d1ae55a4790adf8d8a6f484358802492543e6fa9 parent 4476b2f14973aacd9df3ccc45539f601a02c9943 Author: William Casarin <jb55@jb55.com> Date: Sat, 27 Mar 2021 08:55:04 -0700 reader: format Signed-off-by: William Casarin <jb55@jb55.com> Diffstat:
D | bin/books | | | 9 | --------- |
A | bin/reader | | | 12 | ++++++++++++ |
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/bin/books b/bin/books @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -BOOKS_DIR="${1:-$HOME/docs}" - -find "$BOOKS_DIR" -name '*.txt' -type f -printf '%T@\t%f\t%p\n' | - sort -rn | - cutt -f2- | - fzf | - awkt '{print $2}' | - xargs lessr diff --git a/bin/reader b/bin/reader @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +BOOKS_DIR="${1:-$HOME/docs}" + +set -eou pipefail + +find "$BOOKS_DIR" -name '*.txt' -type f -printf '%T@\t%f\t%p\n' | + sort -rn | + cutt -f2- | + ct | + fzf | + awk '{print $2}' | + xargs lessr