dotfiles

My configuration files.
Log | Files | Refs | README

commit 3d2652be14c146b14d0f67d26435686066564f5c
parent eabb9031c020b5a7441709f09c43d6951656b3e1
Author: Sven Möller <sven-moeller@outlook.de>
Date:   Sun, 26 Dec 2021 15:30:09 +0100

Readable filename for downloaded epubs

Diffstat:
Mbin/.local/bin/bm | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/.local/bin/bm b/bin/.local/bin/bm @@ -49,7 +49,7 @@ open () { download () { url="$(get_url $1 $2)" - title="$(sed 's_/$__' | rev | cut -d'/' -f1 | rev | sed 's_\..*__')" + title="$(echo "$url" | sed 's_/$__' | rev | cut -d'/' -f1 | rev)" echo $title pandoc --verbose -o "$BM_DIR/saved/$title.epub" "$url" }