dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 9f3177df0bd581b402504aa873fb1a1a336a6d7f
parent a0da8f1bf0dc9e407077f43c58ab4ec2dfd2a4ed
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  3 Jul 2020 10:37:29 +0200

Stricten requirement for doi classification

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

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -209,7 +209,7 @@ handle_target() { $prefix zathura "$(fetch "$t")" elif regeximatch "$t" '(smbc-comics\.com|xkcd\.com|jspowerhour\.com|explosm\.net)'; then cd /tmp && detach comic "$t" - elif regexmatch "$t" '.*doi.*10\.[0-9]*\/'; then + elif regexmatch "$t" '^doi.*10\.[0-9]*\/'; then detach $prefix $BROWSER "https://doi.org/${t}" elif regexmatch "$t" '\.(txt|patch|diff|rst|md)$'; then f="$(fetch "$t")"