Improve mansplain script for readability

This commit is contained in:
Talia 2020-02-03 17:29:53 +01:00
parent 2603d82fe7
commit 33094886d0
1 changed files with 6 additions and 1 deletions

View File

@ -1 +1,6 @@
apropos . | awk '{print $1}' | dmenu -l 10 -b | xargs -r man -Tps | ps2pdf - | zathura - #!/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