mac terminal

A sample Mac OS X Bash startup file (.bash_profile)

In case anyone needs a sample .bash_profile startup file for their Mac OS X or other Unix/Linux system, I thought I'd share my most recent version here.

Mac Terminal title - Change the Mac Terminal title from the command line

Mac Terminal title tip: How to change the Mac Terminal title from the Terminal command line.

I've been working on a project where I have three Mac Terminal windows open at one time, and I found it was much easier to work this way when I changed the Mac Terminal title on each Terminal window. This helped me easily identify what I was doing in each Mac Terminal window.

Changing the Mac Terminal title

The basic escape sequence you need to change the Mac Terminal title from the command line is this:

Mac Finder and Terminal: Open a Mac Terminal window in the current Finder folder

Mac Terminal Finder tip: How to open a Mac Terminal window in the current Mac Finder folder.

As a Mac OS X newbie, I don't know if there is a better way to do this, but to open a Mac Terminal window from the current Mac Finder folder, I wrote an AppleScript script. I'm new to AppleScript also, so the script is pretty simple. Here's the code:

Mac Finder - open the Mac Finder from a Terminal window

Mac Terminal Finder tip: How to open a Mac Finder window from the current directory of a Mac Terminal window.

Cool, I just learned how to open a Mac Finder window in the current directory of a Mac Terminal window. To do it, just issue this Mac open command:

open .

(Yes, that is a decimal after the open command. The decimal is the Unix way of referring to the current directory.)

Syndicate content