mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 12:10:42 +00:00
Initial commit
This commit is contained in:
parent
b912871070
commit
a3e01caebf
157 changed files with 9696 additions and 0 deletions
11
home/.local/bin/scripts/gui/dmenu-scripts/dman
Executable file
11
home/.local/bin/scripts/gui/dmenu-scripts/dman
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue