mirror of the now-defunct rocklinux.org
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.

99 lines
2.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/sysfiles/etc_profile.txt
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. # set the PATH-variable
  23. if [ -w / ] ; then
  24. PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
  25. for x in /usr/X11/sbin /usr/X11/bin /usr/games /usr/local/games \
  26. /opt/*/sbin /opt/*/bin /opt/*/games $HOME/sbin $HOME/bin
  27. do
  28. [ -d $x ] && export PATH="$PATH:$x"
  29. done
  30. else
  31. PATH='/bin:/usr/bin:/usr/local/bin'
  32. for x in /usr/X11/bin /usr/games /usr/local/games \
  33. /opt/*/bin /opt/*/games $HOME/bin
  34. do
  35. [ -d $x ] && export PATH="$PATH:$x"
  36. done
  37. fi
  38. export PATH
  39. # set the prompts for bash and ksh
  40. #
  41. if [ "$PS1" ] ; then
  42. PS1='$ ' ; PS2='> ' ; PS4='+ '
  43. [ "$BASH_VERSION" ] && PS1='\u@\h:\w\$ '
  44. [ "$KSH_VERSION" -a -w / ] && PS1='$USER:$PWD# '
  45. [ "$KSH_VERSION" -a ! -w / ] && PS1='$USER:$PWD# '
  46. fi
  47. # set some enviroment-variables
  48. #
  49. export EDITOR="vi"
  50. export PAGER="less -R"
  51. export BLOCKSIZE=K
  52. export INPUTRC="/etc/inputrc"
  53. # set the MANPATH variable
  54. #
  55. export MANPATH=/usr/share/man
  56. for x in /usr/X11/man /usr/local/man /usr/local/share/man /opt/*/man
  57. do [ -d $x ] && MANPATH="$MANPATH:$x" ; done
  58. # set the INFOPATH variable
  59. #
  60. export INFOPATH=/usr/share/info
  61. for x in /usr/X11/info /usr/local/info /usr/local/share/info /opt/*/info
  62. do [ -d $x ] && INFOPATH="$INFOPATH:$x" ; done
  63. # set the PKG_CONFIG_PATH variable
  64. #
  65. export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
  66. for x in /usr/X11/lib /usr/local/lib /opt/*/lib $HOME/lib
  67. do [ -d $x/pkgconfig ] && PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$x/pkgconfig" ; done
  68. # some usefull aliases (only if this is an interactive shell)
  69. #
  70. if [ "$PS1" ] ; then
  71. alias -- +='pushd .'
  72. alias -- -='popd'
  73. alias ..='cd ..'
  74. alias ...='cd ../..'
  75. eval `dircolors -b /etc/dircolors`
  76. [ -w / ] && alias ls="ls --color=auto -a" ||
  77. alias ls="ls --color=auto"
  78. alias l="ll -a" ; alias ll="ls -l"
  79. alias which="type -p"
  80. alias rehash="hash -r"
  81. fi
  82. # include local profiles
  83. #
  84. for x in /etc/profile.d/* /etc/conf/profile ; do
  85. [ -f $x ] && . $x
  86. done
  87. unset x