path_helper(8)

path_helper8

Helper for constructing path environment variable

Usage

path_helper [{-c | -s}]

Overview

The path_helper utility reads the contents of the files in the directories /etc/paths.d and /etc/manpaths.d and appends their contents to the PATH and MANPATH environment variables respectively. (The MANPATH environment variable will not be modified unless it is already set in the environment.)

Files in these directories should contain one path element per line.

Prior to reading these directories, default PATH and MANPATH values are obtained from the files /etc/paths and /etc/manpaths respectively.

Options:

-c

Generate C-shell commands on stdout. This is the default if SHELL ends with "csh".

-s

Generate Bourne shell commands on stdout. This is the default if SHELL does not end with "csh".

Note

The path_helper utility should not be invoked directly. It is intended only for use by the shell profile.

Releases

115 releases since Mac OS X 10.5; the text changed 1 time.

  1. 10.5–10.5.8
  2. 10.6–26.5

From shell_cmds 329 in macOS 26.5. Parsed by carta from the page's mdoc source.