Update 2022-12-06 08:01 OpenBSD/amd64

This commit is contained in:
c0dev0id
2022-12-06 08:01:44 +01:00
parent fb05d04fee
commit df81168e5e
28 changed files with 701 additions and 4 deletions

12
.bin/dexec_man Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
. $HOME/.bin/_config
MAN="$( for i in $(jot 9 1); do
man -s $i -k . | awk -v i=$i -F"(" '{ gsub(", ","\n"i"-",$1); print i"-"$1}'
done | $DMENU_CMD -p "Manpage" )"
if [ ! -z "$MAN" ]; then
M="$(printf '%s' "$MAN" | cut -d"-" -f2)"
S="$(printf '%s' "$MAN" | cut -d"-" -f1)"
bterm -e man -s "$S" "$M"
fi