The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
grep unix.com with google



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-27-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 7,127
Changing OSX Terminal Man Page Colors

For a long time, when I type man anything on my Mac, both the manpage header fonts and the background was black, so I had to use my mouse to highlight the manpage output to read it. It was really annoying.

The problem was the same both locally or using the terminal and going ssh somewhere.

Finally! I fixed it, thanks to this article in MacWorld !!

Set Terminal color via drag and drop | Utilities | Mac OS X Hints | Macworld
  #2 (permalink)  
Old 3 Weeks Ago
Registered User
 

Join Date: Mar 2008
Posts: 103
Here is a neat little trick I did to my ~/.bash_profile


Code:
function woman {
  tmpfile="/tmp/man ${*}.pdf"
  if [ \! -f "${tmpfile}" ]
  then
      man -t "${*}" | pstopdf -i -o "${tmpfile}"
  fi
  open "${tmpfile}"
}

now if you type 'woman' instead of 'man' it will export it to PDF...I posted this on my site and a guy posted his code that will export them to a tabbed page in safari, but I have not tested his script. It is in the comments section if you want to check it out.

Add PDF export of Man pages in OS X | tlarkin.com
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Changing CDE FrontPanel Button Colors insamniac SUN Solaris 1 11-18-2008 01:03 PM
High Page In and Executable page In srage SUN Solaris 9 11-17-2008 09:52 PM
Terminal colors TShirt UNIX for Advanced & Expert Users 2 06-06-2008 09:24 AM
changing the colors of nedit eynkesef UNIX for Dummies Questions & Answers 0 09-10-2006 05:39 AM
Changing korn shell script text Menu colors? darthur UNIX for Dummies Questions & Answers 6 01-20-2002 07:15 PM



All times are GMT -4. The time now is 12:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0