* updated krdc (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / target / desktop / etc_profile.patch
blobb750734961d139fb35e53864dd3f880b49cdcee4
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 ---
17 We want a colored prompt as well as a "nicer" history handling.
19 - Rene Rebe <rene@exactcode.de>
21 --- generic_etc_profile 2006-07-28 17:56:19.000000000 +0000
22 +++ desktop_etc_profile 2006-07-28 17:57:02.000000000 +0000
23 @@ -43,7 +43,8 @@
25 if [ "$PS1" ] ; then
26 PS1='$ ' ; PS2='> ' ; PS4='+ '
27 - [ "$BASH_VERSION" ] && PS1='\u@\h:\w\$ '
28 + color="1;32m" ; [ "$UID" = 0 ] && color="0;31m"
29 + [ "$BASH_VERSION" ] && PS1="\[\033[$color\]\u@\h:\w\\$\[\033[0m\] "
30 [ "$KSH_VERSION" -a -w / ] && PS1='$USER:$PWD# '
31 [ "$KSH_VERSION" -a ! -w / ] && PS1='$USER:$PWD# '
33 @@ -92,6 +93,11 @@
34 alias rehash="hash -r"
37 +# desktop target specifica
39 +HISTCONTROL=erasedups
40 +HISTSIZE=4000; HISTFILESIZE=2000
42 # include local profiles
44 for x in /etc/profile.d/* /etc/conf/profile ; do