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.

86 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../sysfiles/etc_profile.txt
  5. # Copyright (C) 2006 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 / ] ; 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. [ "$BASH_VERSION" ] && PS1='\u@\h:\w\$ '
  37. [ "$KSH_VERSION" -a -w / ] && PS1='$USER:$PWD# '
  38. [ "$KSH_VERSION" -a ! -w / ] && PS1='$USER:$PWD$ '
  39. fi
  40. # set some enviroment-variables
  41. #
  42. export EDITOR="vi"
  43. export PAGER="less -R"
  44. export BLOCKSIZE=K
  45. export INPUTRC="/etc/inputrc"
  46. # set the MANPATH variable
  47. #
  48. export MANPATH=/usr/share/man
  49. for x in /usr/X11/man /usr/local/man /usr/local/share/man /opt/*/man
  50. do [ -d $x ] && MANPATH="$MANPATH:$x" ; done
  51. # set the INFOPATH variable
  52. #
  53. export INFOPATH=/usr/share/info
  54. for x in /usr/X11/info /usr/local/info /usr/local/share/info /opt/*/info
  55. do [ -d $x ] && INFOPATH="$INFOPATH:$x" ; done
  56. # some useful aliases (only if this is an interactive shell)
  57. #
  58. if [ "$PS1" ] ; then
  59. alias -- +='pushd .'
  60. alias -- -='popd'
  61. alias ..='cd ..'
  62. alias ...='cd ../..'
  63. eval `dircolors -b /etc/dircolors`
  64. [ -w / ] && alias ls="ls --color=auto -a" ||
  65. alias ls="ls --color=auto"
  66. alias l="ll -a" ; alias ll="ls -l"
  67. alias which="type -p"
  68. alias rehash="hash -r"
  69. fi
  70. # include local profiles
  71. #
  72. for x in /etc/profile.d/* /etc/conf/profile ; do
  73. [ -f $x ] && . $x
  74. done
  75. unset x