Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
10
.bin/OLD/dexec_man.2
Executable file
10
.bin/OLD/dexec_man.2
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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 | while IFS= read -r l; do echo "${#l} $((++n)) $l"; done | sort -n -k 1 | cut -d" " -f3- | $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
|
||||
Reference in New Issue
Block a user