|
|
10.3: Easily view man pages with Preview
Do I save this in a file? Put it where? Add it to a file (like .bashrc)?
10.3: Easily view man pages with Preview
I did what rob said. In my home directory, I created a file called preman. I placed the code above in the file and changed it to be executable (chmod 755 preman). Then I call it like this from my home directory:
10.3: Easily view man pages with Preview
this is a great hint!
you can paste that code in a text file, chmod 755 it and put it somewhere in your $PATH, like ~/bin.or if you use zsh, add this to your functions file: function manps { man -t "$1" > /tmp/"$1".ps; open /tmp/"$1".ps; }this works exactly the same way, but it gets loaded when you login to the terminal.
10.3: Easily view man pages with Preview
Thanks guys. I thought what rob said was for something else. Up and running!
10.3: Easily view man pages with Preview
If you regularly view large manpages, you might want to add caching, too. This function creates a pdf if it isn't there already and opens it (that's one single line of course):
I guess it could use some error handling to let it fail gracefully in case no man page is found, but I'll leave that up to you. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|