path_helper(8)
π NAME
Okay bestie, meet path_helper β the helper for constructing the PATH environment variable. Sheβs from the System Manager's Manual, sheβs giving utility energy, and sheβs literally here to help your shell profile get its path life together. Slay.
β¨ SYNOPSIS
path_helper [-c | -s]
πΈ DESCRIPTION
So hereβs the tea: path_helper reads the contents of the files in the directories /etc/paths.d and /etc/manpaths.d, then appends their contents to the PATH and MANPATH environment variables respectively. Yes bestie, respectively. π
Tiny but important caveat: the MANPATH environment variable will not be modified unless it is already set in the environment. Periodt.
Files in those directories should contain one path element per line. Thatβs the whole vibe: one path per line, no chaos.
Before it reads those directories, default PATH and MANPATH values are obtained from the files /etc/paths and /etc/manpaths respectively. So defaults first, then directory contents get appended. π
π Options
-cβ Generate C-shell commands on stdout. This is the default ifSHELLends with"csh". C-shell girlies, this oneβs for you.-sβ Generate Bourne shell commands on stdout. This is the default ifSHELLdoes not end with"csh". Bourne shell besties, you already know.
π« NOTE
Real talk: the path_helper utility should not be invoked directly. It is intended only for use by the shell profile. So donβt call her up yourself, okay? Sheβs booked and busy doing profile-only work. π
Cute sign-off: this iconic page is from Mac OS X, dated March 15, 2007, and the manual is path_helper(8). Bye bestie, go let your shell profile handle it. πβ¨
π¦ where this page comes from
- nixpkgs unstable: shell_cmds 329
- Copyright (c) 2007 Apple Inc. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms