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.

98 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 - 2005 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. export PATH=""
  24. for _bindir in $HOME/bin /usr/local/bin /usr/bin /bin /usr/X11/bin \
  25. /usr/games /usr/local/games /opt/*/bin /opt/*/games
  26. do
  27. if [ -d "$_bindir" ]; then
  28. PATH="$PATH${PATH:+:}$_bindir"
  29. fi
  30. if [ -w / ]; then
  31. _sbindir=${_bindir/%\/bin/\/sbin}
  32. if [ "$_bindir" != "$_sbindir" -a -d "$_sbindir" ]; then
  33. PATH="$PATH${PATH:+:}$_sbindir"
  34. fi
  35. fi
  36. done
  37. unset _bindir _sbindir
  38. # set the prompts for bash and ksh
  39. #
  40. if [ "$PS1" ] ; then
  41. PS1='$ ' ; PS2='> ' ; PS4='+ '
  42. [ "$BASH_VERSION" ] && PS1='\u@\h:\w\$ '
  43. [ "$KSH_VERSION" -a -w / ] && PS1='$USER:$PWD# '
  44. [ "$KSH_VERSION" -a ! -w / ] && PS1='$USER:$PWD$ '
  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. # set the PKG_CONFIG_PATH variable
  63. #
  64. export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
  65. for x in /usr/X11/lib /usr/local/lib /opt/*/lib $HOME/lib
  66. do [ -d $x/pkgconfig ] && PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$x/pkgconfig" ; done
  67. # some useful aliases (only if this is an interactive shell)
  68. #
  69. if [ "$PS1" ] ; then
  70. alias -- +='pushd .'
  71. alias -- -='popd'
  72. alias ..='cd ..'
  73. alias ...='cd ../..'
  74. eval `dircolors -b /etc/dircolors`
  75. [ -w / ] && alias ls="ls --color=auto -a" ||
  76. alias ls="ls --color=auto"
  77. alias l="ll -a" ; alias ll="ls -l"
  78. alias which="type -p"
  79. alias rehash="hash -r"
  80. fi
  81. # include local profiles
  82. #
  83. for x in /etc/profile.d/* /etc/conf/profile ; do
  84. [[ $x == *.csh ]] && continue
  85. [ -f $x ] && . $x
  86. done
  87. unset x