Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # /etc/profile
  2.  
  3. # Set our umask
  4. umask 022
  5.  
  6. # Append our default paths
  7. appendpath () {
  8. case ":$PATH:" in
  9. *:"$1":*)
  10. ;;
  11. *)
  12. PATH="${PATH:+$PATH:}$1"
  13. esac
  14. }
  15.  
  16. appendpath '/usr/local/sbin'
  17. appendpath '/usr/local/bin'
  18. appendpath '/usr/bin'
  19. unset appendpath
  20.  
  21. export PATH
  22.  
  23. # Load profiles from /etc/profile.d
  24. if test -d /etc/profile.d/; then
  25. for profile in /etc/profile.d/*.sh; do
  26. test -r "$profile" && . "$profile"
  27. done
  28. unset profile
  29. fi
  30.  
  31. # Source global bash config
  32. if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then
  33. . /etc/bash.bashrc
  34. fi
  35.  
  36. # Termcap is outdated, old, and crusty, kill it.
  37. unset TERMCAP
  38.  
  39. # Man is much better than us at figuring this out
  40. unset MANPATH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement