Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2011
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. # /etc/profile: This file contains system-wide defaults used by
  2. # all Bourne (and related) shells.
  3.  
  4. # Set the values for some environment variables:
  5. export MINICOM="-c on"
  6. export MANPATH=/usr/local/man:/usr/man
  7. export HOSTNAME="`cat /etc/HOSTNAME`"
  8. export LESSOPEN="|lesspipe.sh %s"
  9. export LESS="-M"
  10.  
  11. # If the user doesn't have a .inputrc, use the one in /etc.
  12. if [ ! -r "$HOME/.inputrc" ]; then
  13. export INPUTRC=/etc/inputrc
  14. fi
  15.  
  16. # Set the default system $PATH:
  17. PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
  18.  
  19. # For root users, ensure that /usr/local/sbin, /usr/sbin, and /sbin are in
  20. # the $PATH. Some means of connection don't add these by default (sshd comes
  21. # to mind).
  22. if [ "`id -u`" = "0" ]; then
  23. echo $PATH | grep /usr/local/sbin 1> /dev/null 2> /dev/null
  24. if [ ! $? = 0 ]; then
  25. PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
  26. fi
  27. fi
  28.  
  29. # I had problems with the backspace key using 'eval tset' instead of 'TERM=',
  30. # but you might want to try it anyway instead of the section below it. I
  31. # think with the right /etc/termcap it would work.
  32. # eval `tset -sQ "$TERM"`
  33.  
  34. # Set TERM to linux for unknown type or unset variable:
  35. if [ "$TERM" = "" -o "$TERM" = "unknown" ]; then
  36. TERM=linux
  37. fi
  38.  
  39. # Set ksh93 visual editing mode:
  40. if [ "$SHELL" = "/bin/ksh" ]; then
  41. VISUAL=emacs
  42. # VISUAL=gmacs
  43. # VISUAL=vi
  44. fi
  45.  
  46. # Set a default shell prompt:
  47. #PS1='`hostname`:`pwd`# '
  48. if [ "$SHELL" = "/bin/pdksh" ]; then
  49. PS1='! $ '
  50. elif [ "$SHELL" = "/bin/ksh" ]; then
  51. PS1='! ${PWD/#$HOME/~}$ '
  52. elif [ "$SHELL" = "/bin/zsh" ]; then
  53. PS1='%n@%m:%~%# '
  54. elif [ "$SHELL" = "/bin/ash" ]; then
  55. PS1='$ '
  56. else
  57. PS1='\u@\h:\w\$ '
  58. fi
  59. PS2='> '
  60. export PATH DISPLAY LESS TERM PS1 PS2
  61.  
  62. # Default umask. A umask of 022 prevents new files from being created group
  63. # and world writable.
  64. umask 022
  65.  
  66. # Notify user of incoming mail. This can be overridden in the user's
  67. # local startup file (~/.bash.login or whatever, depending on the shell)
  68. if [ -x /usr/bin/biff ]; then
  69. biff y 2> /dev/null
  70. fi
  71.  
  72. # Append any additional sh scripts found in /etc/profile.d/:
  73. for profile_script in /etc/profile.d/*.sh ; do
  74. if [ -x $profile_script ]; then
  75. . $profile_script
  76. fi
  77. done
  78. unset profile_script
  79.  
  80. # For non-root users, add the current directory to the search path:
  81. if [ ! "`id -u`" = "0" ]; then
  82. PATH="$PATH:."
  83. fi
  84.  
  85. export JAVA_HOME=/opt/dev/jdk
  86. export CLASSPATH=$JAVA_HOME/lib/:$CLASSPATH
  87. export PATH=$JAVA_HOME/bin/:$PATH
  88. export MANPATH=$JAVA_HOME/man/:$MANPATH
  89.  
  90. export GRAILS_HOME=/opt/dev/grails
  91. export PATH=$GRAILS_HOME/bin/:$PATH
  92.  
  93. export ANT_HOME=/opt/dev/ant
  94. export PATH=$ANT_HOME/bin/:$PATH
  95.  
  96. export M2_HOME=/opt/dev/mvn
  97. export PATH=$M2_HOME/bin/:$PATH
  98.  
  99. export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd_hrgb'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement