citadel

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

commit c6480b650cb29b84d269e983f060b5a5a4666c0e
parent cd81abcddfbcbd4a57b2a5dd18fb345fb8e19fa6
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 28 Jun 2021 08:34:38 -0700

reader: set window name

Diffstat:
Mbin/reader | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/bin/reader b/bin/reader @@ -10,6 +10,10 @@ document=$(find "$BOOKS_DIR" \( -iname '*.txt' -o -iname '*.epub' -o -iname '*.p fzf | awk '{print $2}') +name="$(basename "$document")" +noext="${name%.*}" + +wname "$noext" if [ $(extname "$document") == ".txt" ]; then lessr "$document" else