mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-27 21:54:34 +00:00
12 lines
216 B
Plaintext
12 lines
216 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Dmenu prompt to easily search for a man page to open
|
||
|
|
||
|
page="$(apropos --long "$1" | dmenu -i -l 10 | awk '{print $2, $1}' | tr -d '()')"
|
||
|
|
||
|
if tty -s; then
|
||
|
man $page
|
||
|
else
|
||
|
$TERMINAL -e man $page
|
||
|
fi
|