More convenient running from the command-line

What if you wanted to run Affirmation from the command line on a regular basis? Your best option is to move the executable to one of the standard directories for executables. This will allow you to run from the command line using only the name of the executable:

$​ ​A​f​f​i​r​m​a​t​i​o​n​ ​"​t​h​e​ ​b​e​s​t​"​ ​4​

The standard directories for executables are determined by the PATH environment variable.

In Terminal, find your PATH environment variable:

$​ ​e​c​h​o​ ​$​P​A​T​H​
/​u​s​r​/​b​i​n​:​/​b​i​n​:​/​u​s​r​/​s​b​i​n​:​/​s​b​i​n​:​/​u​s​r​/​l​o​c​a​l​/​b​i​n​:​/​u​s​r​/​X​1​1​/​b​i​n​

The /usr/local/bin directory a good home for Affirmation; by convention, it is the directory ...

Get Objective-C Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.