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 d70840a9cc2d6ed8613432fbe551ceb2540c8809
parent 6bebb7981d217aff588f72dbd05fddd4d4dab535
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 28 Feb 2020 12:10:27 +0100

Parse manual pages with mdoc

Diffstat:
M.local/bin/plumb | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -125,6 +125,13 @@ handle_target() { else sacc "$t" fi + elif regexmatch "$t" '\.[0-9]$'; then + if [ -z "$TERM" ]; then + detach $TERMINAL mandoc -l "$(fetch "$t")" + else + mandoc -l "$(fetch "$t")" + fi + elif regeximatch "$t" '^(http|https)://'; then detach $BROWSER "$t" else