Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 3.11 KB

terminal.md

File metadata and controls

63 lines (43 loc) · 3.11 KB

Setup for Mac OS X

This guide will help you setup a software development environment on Mac OS X 10.9 Mavericks and above. This guide is mostly compatible with older versions of Mac OS X.

The Terminal

Included in Mac OS X is the Terminal—an app that runs a Unix shell.

Explore the Terminal

First, use Spotlight to launch the Terminal app.

Spotlight

Once launched, you'll see something like this.

Terminal App

Here's a quick break down of what you're seeing in the Terminal app.

Component Description
Wed Jan 28 08:12:49 Date of your last login
ttys003 Name of your last terminal session
photon Name of your computer
~ (home directory) Name of your working directory
ryansobol Name of your user account
$ Prompt symbol

Any characters you type will appear after the $ prompt symbol. Go ahead and type uname. After pressing the Enter key, you'll see something like this.

Terminal App

Here's what happened:

  1. The shell waited for you to type a command.
  2. You then typed the word uname which appeared after the prompt.
  3. You pressed the Enter key which triggered the shell to accept your input.
  4. The shell searched for a program called uname.
  5. Once found, the shell launched the uname program and handed it control over the Terminal.
  6. While running, the uname program told the Terminal to display the word Darwin.
  7. Once finished, the uname program exited and handed control of the Terminal back to the shell.
  8. The shell told the Terminal to display another prompt.
  9. Once displayed, the shell began waiting for your next command.

Simply stated, a Unix shell works like a read-evaluate-print loop or REPL.

Change the Terminal Profile

The default profile for the Terminal uses small, black text on a white background. Boring! Let's change that.

  1. Download the Tomorrow Night Eighties terminal profile by holding the Option key and left-clicking the link.
  2. Navigate to the Downloads folder.
  3. Install the profile by double-clicking the file.
  4. You may see an alert explaining the file "cannot be opened because it is from an unidentified developer".
  5. If so, launch the System Preferences app, navigate to Security & Privacy > General, and then click on the Open Anyway button. Terminal App
  6. Back in the Terminal app, navigate to the Terminal > Preferences menu item.
  7. In the preferences window, click the Settings Pane.
  8. On the left side, scroll to the bottom, select the Tommorrow Night Eighties profile, and click the Default button. Terminal App
  9. Finally, quit and relaunch the Terminal.