/profile

http://github.com/brinkman83/bashrc · #! · 28 lines · 25 code · 3 blank · 0 comment · 0 complexity · b59ea6ac3a1ad8c0527ec94f73bafca0 MD5 · raw file

  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. if [ -d /etc/profile.d ]; then
  4. for i in /etc/profile.d/*.sh; do
  5. if [ -r $i ]; then
  6. . $i
  7. fi
  8. done
  9. unset i
  10. fi
  11. if [ "$PS1" ]; then
  12. if [ "$BASH" ]; then
  13. PS1='\u@\h:\w\$ '
  14. if [ -f /etc/bash.bashrc ]; then
  15. . /etc/bash.bashrc
  16. fi
  17. else
  18. if [ "`id -u`" -eq 0 ]; then
  19. PS1='# '
  20. else
  21. PS1='$ '
  22. fi
  23. fi
  24. fi
  25. umask 022