Advertisement
dpeca

/etc/profile

Jun 27th, 2022
1,053
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None
  1. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  2. # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
  3.  
  4. if [ "`id -u`" -eq 0 ]; then
  5.   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  6. else
  7.   PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
  8. fi
  9. export PATH
  10.  
  11. if [ "${PS1-}" ]; then
  12.   if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
  13.     # The file bash.bashrc already sets the default PS1.
  14.     # PS1='\h:\w\$ '
  15.     if [ -f /etc/bash.bashrc ]; then
  16.       . /etc/bash.bashrc
  17.     fi
  18.   else
  19.     if [ "`id -u`" -eq 0 ]; then
  20.       PS1='# '
  21.     else
  22.       PS1='$ '
  23.     fi
  24.   fi
  25. fi
  26.  
  27. if [ -d /etc/profile.d ]; then
  28.   for i in /etc/profile.d/*.sh; do
  29.     if [ -r $i ]; then
  30.       . $i
  31.     fi
  32.   done
  33.   unset i
  34. fi
  35. LS_COLORS="$LS_COLORS:di=00;33"
  36.  
Advertisement
RAW Paste Data Copied
Advertisement