
Series of commands written in the scripting language for the corresponding Tilde] is a synonym for your home directory.)Ĭonfiguration files for shells are actually scripts. These files each have settings andĬommands for the particular program being configured. You would change in the course of normal use. In this chapter, we will concentrate on the ones There areĪctually several config-uration files available for each shell, and Table 7.1 Vi editor is called ~/.exrc ( ex is an older editor,Īnd vi provides a "visual interface" for it). For example, the main config-uration fileįor the tcsh shell is ~/.tcshrc, a configuration file for theīash shell is ~/.bash_profile, and the configuration file for the Many configuration filenames begin with a dot (.), so they are called dotįiles (use ls -a to see them). They do accept options on the command line butĭo not read any configuration files when you run them. User-config-urable neither the ls nor the cd command usesĬonfiguration files, for example. Most of the commands you have learned so far are not User-configurable Unix programs (including your shell, the viĮditor, and others) look for configuration files in your home directory It should come as no surprise by now that you configure your shell by editing
#Add to path osx how to
"Editing and Printing Files," to learn how to use vi). The vi editor by editing a configuration file it uses (see Chapter 6, The first program to configure is your shell, since your shell is the primary Options whenever you use them, much the same way that traditional Mac programs You add /Developer/Tools to your PATH, then you can use theĬommands in the /Developer/Tools directory without typing their fullĬonfiguring specific programs such as vi to turn on various
#Add to path osx install
Making it easier to use additional software you install for example, if

The Finder, and from the shell functions, which are short scripts that Preferences and to shape it more closely to the way you work.Įxamples of configuring your Unix environment include:Ĭustomizing your shell prompt so that it displays information you want toĬreating shortcuts for commonly used command/option combinations (theseĬan be "aliases," but they are distinct from the aliases you create in

You change your Unix environment to have it more closely match your personal These configuration files contain settings andĬommands that determine how the programs will behavefor instance, theįiles can modify the list of places your shell looks for the commands you enter Many user-configurable Unix programs (such as your shell) read configurationįiles when they start up.
