mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 12:10:42 +00:00
Update multiple scripts
This commit is contained in:
parent
542ac098b4
commit
44b010a541
17 changed files with 424 additions and 37 deletions
11
home/.local/bin/scripts/gui/prompt/dmenu-scripts/dman
Executable file
11
home/.local/bin/scripts/gui/prompt/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