citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 430561a22636027f371d82e4553d3d46662d0ac4
parent eaedda0bc9d7f9cbb085fff0fce0b68168aba86d
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 22 Sep 2020 14:22:49 -0700

books: generalize

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mbin/books | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bin/books b/bin/books @@ -1,6 +1,7 @@ #!/usr/bin/env bash -BOOKS_DIR="${1:-$HOME/docs/books}" +BOOKS_DIR="${1:-$HOME/docs}" -find "$BOOKS_DIR" -name '*.txt' -type f -printf "%f\n" | +find "$BOOKS_DIR" -name '*.txt' -type f -printf '%f\t%p\n' | fzf | - xargs -I{} lessr "$BOOKS_DIR"/{} + awkt '{print $2}' | + xargs lessr