Customizing the Terminal
To
customize the
shell
used by the Terminal, start by changing the
Terminal’s Preferences (Terminal
→ Preferences). In the
Preferences pane, you can tell the Terminal to execute the default
shell or a specific command (such as an alternative shell) at
startup.[3]
You can also declare the terminal type
($TERM), which is set as xterm-color
by default. The other choices for the environment variable
TERM are ansi,
rxvt, vt52, vt100, vt102, and xterm.
Among other things, the default setting for TERM allows you to take
advantage of the support for color output in ls
(via the -G
option) and color syntax highlighting in the
vim
editor.
You can also adjust the Terminal’s characteristics using Terminal → Window Settings (or
-I), which brings up the Terminal Inspector, shown in Figure 1-3. Table 1-1 lists the available window settings. Changing these settings affects only the topmost Terminal window. If you want to change the default settings for all future Terminal windows, click the Use Settings As Defaults button at the bottom of the Terminal Inspector window.

Figure 1-3. The Terminal Inspector
Table 1-1. Window settings
|
Pane |
Description |
|---|---|
|
Shell |
Displays the shell used by the Terminal and lets you choose whether to close the Terminal window when the shell exits. ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access