mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-05-11 09:48:37 +00:00
Add script to open man page with dmenu
This commit is contained in:
parent
4b2f55732f
commit
e24ad10313
1 changed files with 6 additions and 0 deletions
6
home/.local/bin/scripts/gui/dmenu/dman
Executable file
6
home/.local/bin/scripts/gui/dmenu/dman
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/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 '()')"
|
||||||
|
man $page
|
Loading…
Add table
Reference in a new issue