dotfiles/.bin/OLD/dexec_man
2024-02-16 08:26:11 +01:00

12 lines
226 B
Bash

#!/bin/sh
. $HOME/.bin/_config
SEL=$(man -k any= | $DMENU_CMD -l 10 -p "Man")
[ -z "$SEL" ] && exit 0
N=$(echo "$SEL" | cut -d"(" -f2 | cut -d")" -f1)
M=$(echo "$SEL" | cut -d"(" -f1 | cut -d"," -f1)
sterm -e man -s $N $M