mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 04:00:42 +00:00
Add support for running dman outside of terminal
This commit is contained in:
parent
e24ad10313
commit
e412aba38e
1 changed files with 6 additions and 1 deletions
|
@ -3,4 +3,9 @@
|
|||
# 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue