andsim

Untitled

Apr 21st, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 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 [ -d /etc/profile.d ]; then
  5. for i in /etc/profile.d/*.sh; do
  6. if [ -r $i ]; then
  7. . $i
  8. fi
  9. done
  10. unset i
  11. fi
  12.  
  13. if [ "$PS1" ]; then
  14. if [ "$BASH" ]; then
  15. PS1='\u@\h:\w\$ '
  16. if [ -f /etc/bash.bashrc ]; then
  17. . /etc/bash.bashrc
  18. fi
  19. else
  20. if [ "`id -u`" -eq 0 ]; then
  21. PS1='# '
  22. else
  23. PS1='$ '
  24. fi
  25. fi
  26. fi
  27.  
  28. umask 022
Add Comment
Please, Sign In to add comment