profile (617B)
1# /etc/profile 2 3# System wide environment and startup programs. 4 5appendpath () { 6 case ":$PATH:" in 7 *:"$1":*) 8 ;; 9 *) 10 PATH="${PATH:+$PATH:}$1" 11 esac 12} 13 14# Set our default path (/usr/sbin:/sbin:/bin included for non-Void chroots) 15appendpath '/usr/local/sbin' 16appendpath '/usr/local/bin' 17appendpath '/usr/bin' 18appendpath '/usr/sbin' 19appendpath '/sbin' 20appendpath '/bin' 21unset appendpath 22 23export PATH 24 25# Set default umask 26umask 022 27 28# Load profiles from /etc/profile.d 29if [ -d /etc/profile.d/ ]; then 30 for f in /etc/profile.d/*.sh; do 31 [ -r "$f" ] && . "$f" 32 done 33 unset f 34fi