None of the paths I have in the /etc/paths.d
directory are being added to $PATH
in any of the shells on my High Sierra system. Presumably there’s supposed to be something in some file that says to look in /etc/paths.d
when a shell starts; what is that something and where should it be?
Ideally I’d like to know a proper way (i.e. not some weird hack that technically solves the problem but will cause more problems down the line, because that’s almost certainly how I got into this mess) to get $PATH
to use the contents of /etc/paths.d
for at least bash and zsh.
.bashrc
etc.) have you created?/etc/paths.d
toPATH
?PATH
is used by the shell to find executables, and there shouldn't be any in/etc
or its subfolders./etc/paths.d
is an easy way to add path elements systemwide without tampering with/etc/profile
or/etc/paths
..zshenv
,.bash_profile
, and.bashrc
. I didn’t create any of those, though I have had to mess with them after various install scripts had their way. I use bash more often than zsh./etc/profile
gets executed automatically, so maybe one of the.
profiles overwritesPATH
for good.