dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2dce8327bf02c89beb7048a51856ba0a58169bf8
parent 9d3a9d76f541bb3bffb72467d79cddeb47e0c3f8
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Fri, 17 Sep 2021 12:06:08 +0200

dmenuman: open manpages from dmenu

Diffstat:
Ascripts/dmenuman | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/scripts/dmenuman b/scripts/dmenuman @@ -0,0 +1,11 @@ +#!/bin/sh +term="${TERMINAL:-st}" + +manual="$(man -k . | dmenu -p "Manual:" -l 10 | awk '{print $1}')" + +# open selected manual with terminal +[ -n "$manual" ] && $term man $manual + +exit 0 + +