6 lines
218 B
Bash
Executable file
6 lines
218 B
Bash
Executable file
#!/bin/sh
|
|
manpage=$(apropos . | awk '{print $1}' | dmenu -p 'Mansplain what?' -l 10 -b)
|
|
if [ -z "$manpage" ];
|
|
then echo "Manpage not found or no manpage selected"; exit
|
|
else man -Tps $manpage | ps2pdf - | zathura -
|
|
fi
|