6 # Append "$1" to $PATH when not already in.
7 # This function API is accessible to scripts in /etc/profile.d
13 PATH="${PATH:+$PATH:}$1"
17 # Append our default paths
18 append_path '/usr/local/sbin'
19 append_path '/usr/local/bin'
20 append_path '/usr/bin'
22 # Force PATH to be environment
25 # Load profiles from /etc/profile.d
26 if test -d /etc/profile.d/; then
27 for profile in /etc/profile.d/*.sh; do
28 test -r "$profile" && . "$profile"
33 # Unload our profile API functions
36 # Source global bash config, when interactive but not posix or sh mode
39 test -z "$POSIXLY_CORRECT" &&\
40 test "${0#-}" != sh &&\
41 test -r /etc/bash.bashrc
46 # Termcap is outdated, old, and crusty, kill it.
49 # Man is much better than us at figuring this out