Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
megaman
#!/bin/bash
if [ $# -lt 1 ]; then
selection=$(man -k . | fzf | cut -f1 -d " ")
if [ -z selection ]; then
exit
fi
if man "$var" > /dev/null 2>&1
then
man -Tpdf "$var" | zathura - &
fi
exit
fi
if [ $# -gt 0 ]; then
for var in "$@"; do
if man "$var" > /dev/null 2>&1
then
man -Tpdf "$var" | zathura - &
fi
done
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.