slitaz-base-files view rootfs/etc/profile @ rev 8

No red prompt for root (display problem with colors)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 08 20:35:20 2008 +0100 (2008-03-08)
parents fa9892f72cae
children 6553f10aba71
line source
1 # /etc/profile: system-wide .profile file for the Bourne shells
3 PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
4 LD_LIBRARY_PATH="/usr/lib:/lib"
6 # Prompt format for Ash (Bash use /etc/bashrc).
7 #
8 if [ "`id -u`" -eq 0 ]; then
9 # Light green and blue colored prompt.
10 #PS1='\e[1;31m\u@\h\e[0m:\e[1;34m\w\e[0m\# '
11 PS1='\u@\h:\w\# '
12 else
13 # Light green and blue colored prompt.
14 PS1='\e[1;32m\u@\h\e[0m:\e[1;34m\w\e[0m\$ '
15 #PS1='\u@\h:\w\$ '
16 fi
18 # Screen display for X and encoding for GTK+ apps.
19 #
20 DISPLAY=:0.0
21 G_FILENAME_ENCODING=iso8859-1
23 # ldd fake
24 #
25 which ldd > /dev/null || alias ldd=LD_TRACE_LOADED_OBJECTS=1
27 # Export all variables definied above and set mask.
28 #
29 export PATH LD_LIBRARY_PATH PS1 DISPLAY G_FILENAME_ENCODING ignoreeof
30 umask 022
32 # Locale and timezone settings.
33 #
34 if [ -f "/etc/locale.conf" ]; then
35 . /etc/locale.conf
36 export LANG LC_ALL
37 fi
38 if [ -f "/etc/TZ" ]; then
39 TZ=`cat /etc/TZ`
40 export TZ
41 fi