Advertisement
Forage

Untitled

Apr 28th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  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 [ "$PS1" ]; then
  5. if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
  6. # The file bash.bashrc already sets the default PS1.
  7. # PS1='\h:\w\$ '
  8. if [ -f /etc/bash.bashrc ]; then
  9. . /etc/bash.bashrc
  10. fi
  11. else
  12. if [ "`id -u`" -eq 0 ]; then
  13. PS1='# '
  14. else
  15. PS1='$ '
  16. fi
  17. fi
  18. fi
  19.  
  20. # The default umask is now handled by pam_umask.
  21. # See pam_umask(8) and /etc/login.defs.
  22.  
  23. if [ -d /etc/profile.d ]; then
  24. for i in /etc/profile.d/*.sh; do
  25. if [ -r $i ]; then
  26. . $i
  27. fi
  28. done
  29. unset i
  30. fi
  31. [[ -f "/etc/autopackage/paths-bash" ]] && . "/etc/autopackage/paths-bash"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement