OpenSDE Framework (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.

44 lines
1.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: target/desktop/etc_profile.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. We want a colored prompt as well as a "nicer" history handling.
  17. - Rene Rebe <rene@exactcode.de>
  18. --- generic_etc_profile 2006-07-28 17:56:19.000000000 +0000
  19. +++ desktop_etc_profile 2006-07-28 17:57:02.000000000 +0000
  20. @@ -43,7 +43,8 @@
  21. #
  22. if [ "$PS1" ] ; then
  23. PS1='$ ' ; PS2='> ' ; PS4='+ '
  24. - [ "$BASH_VERSION" ] && PS1='\u@\h:\w\$ '
  25. + color="1;32m" ; [ "$UID" = 0 ] && color="0;31m"
  26. + [ "$BASH_VERSION" ] && PS1="\[\033[$color\]\u@\h:\w\\$\[\033[0m\] "
  27. [ "$KSH_VERSION" -a -w / ] && PS1='$USER:$PWD# '
  28. [ "$KSH_VERSION" -a ! -w / ] && PS1='$USER:$PWD# '
  29. fi
  30. @@ -92,6 +93,10 @@
  31. alias rehash="hash -r"
  32. fi
  33. +# desktop target specifica
  34. +#
  35. +HISTCONTROL=erasedups
  36. +HISTSIZE=4000; HISTFILESIZE=2000
  37. +
  38. # include local profiles
  39. #
  40. for x in /etc/profile.d/* /etc/conf/profile ; do