OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../sysfiles/overlay.d/etc_profile.txt
  5. # Copyright (C) 2006 - 2009 The OpenSDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. # set the PATH-variable
  16. if [ -w / -o "$USER" = "root" -o "$UID" = 0 ] ; then
  17. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  18. for x in /usr/X11/bin /usr/X11/sbin /usr/games /usr/local/games \
  19. /opt/*/bin /opt/*/sbin /opt/*/games $HOME/bin $HOME/sbin
  20. do
  21. [ -d $x ] && export PATH="$x:$PATH"
  22. done
  23. else
  24. PATH="/usr/local/bin:/usr/bin:/bin"
  25. for x in /usr/X11/bin /usr/games /usr/local/games \
  26. /opt/*/bin /opt/*/games $HOME/bin
  27. do
  28. [ -d $x ] && export PATH="$x:$PATH"
  29. done
  30. fi
  31. export PATH
  32. # set the prompts for bash and ksh
  33. #
  34. if [ "$PS1" ] ; then
  35. PS1='$ ' ; PS2='> ' ; PS4='+ '
  36. if [ -n "$BASH_VERSION" ]; then
  37. PS1='\u@\h:\w\$ '
  38. elif [ -n "$KSH_VERSION" ]; then
  39. if [ $UID -eq 0 ]; then
  40. PS1='$USER:$PWD# '
  41. else
  42. PS1='$USER:$PWD$ '
  43. fi
  44. fi
  45. fi
  46. # set some enviroment-variables
  47. #
  48. export EDITOR="vi"
  49. export PAGER="less -R"
  50. export BLOCKSIZE=K
  51. export INPUTRC="/etc/inputrc"
  52. # set the MANPATH variable
  53. #
  54. export MANPATH=/usr/share/man
  55. for x in /usr/X11/man /usr/local/man /usr/local/share/man /opt/*/man
  56. do [ -d $x ] && MANPATH="$MANPATH:$x" ; done
  57. # set the INFOPATH variable
  58. #
  59. export INFOPATH=/usr/share/info
  60. for x in /usr/X11/info /usr/local/info /usr/local/share/info /opt/*/info
  61. do [ -d $x ] && INFOPATH="$INFOPATH:$x" ; done
  62. # some useful aliases (only if this is an interactive shell)
  63. #
  64. if [ "$PS1" ] ; then
  65. alias -- +='pushd .'
  66. alias -- -='popd'
  67. alias ..='cd ..'
  68. alias ...='cd ../..'
  69. eval `dircolors -b /etc/dircolors`
  70. if [ $UID -eq 0 ]; then
  71. alias ls="ls --color=auto -a"
  72. else
  73. alias ls="ls --color=auto"
  74. fi
  75. alias l="ll -a" ; alias ll="ls -l"
  76. alias which="type -p"
  77. alias rehash="hash -r"
  78. fi
  79. # include local profiles
  80. #
  81. for x in /etc/profile.d/* /etc/conf/profile ; do
  82. [ -f $x ] && . $x
  83. done
  84. unset x