OSX Hints

Subscribe to OSX Hints feed
Macosxhints.com RSS feed
Updated: 5 hours 35 min ago

Bash Function to open man pages in new terminal window

Mon, 12/30/2013 - 14:30

When I'm stumbling around the command line, I usually need to keep various man pages open for reference. I always forget I can get a dedicated man window from the Help or Contextual menus. This bash function allows you to open a man page in a new window directly from the command line.

function man { if [ $# -eq 1 ] ; then open x-man-page://$1 ; elif [ $# -eq 2 ] ; then open x-man-page://$1/$2 ; fi }

Just put this function in your .bashrc file, and when you use the man command, the information opens in Terminal's Man Page specific window setting style. If you don't want to override the default 'man' command operation, you can change the function name to something else.

This function expands on OS X's x-man-page url scheme. And of course, there are plenty of alternate ways to view man pages such as ...

Easily rearrange mail accounts in Mavericks Mail.app

Fri, 12/27/2013 - 13:45

While you can easily rearrange the order of your accounts in Mavericks' mail sidebar, when composing a message there is no easy way of rearranging the accounts as shown in the "From:" dropdown box in a new message; accounts are listed in the order in which they were added, which, in the case of using iCloud Keychain, may be vastly different than the order that you want them in.

Fortunately, there is an easy procedure to rearrange them:

  1. Open up the "Internet Accounts" system preference pane
  2. For each email account, in the order you want them to appear, uncheck and then re-check "Mail"

In this way, the accounts will be removed and readded to Mail in the order that you want them to appear.

Pages