Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A zsh function' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A zsh function
Authored by: sabi on Nov 02, '03 04:37:09PM

  gman() {
    PDF=/tmp/man.$$.pdf
    print 'Converting to PDF...'
    man -t $@ | pstopdf -i -o $PDF
    print 'Opening in Preview...'
    launch -c prvw $PDF
    { sleep 5; rm -f $PDF } &!
  }
Feel free to dump the 'print' statements if you don't like progress. Personally, the first one I tried was 'zshall', which takes quite a while to generate.

[ Reply to This | # ]