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

Initial commit from slitaz-base-files-1.0.tar.gz
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 24 18:22:52 2007 +0100 (2007-12-24)
parents
children fa9892f72cae
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 # Export all variables definied above and set mask.
24 #
25 export PATH LD_LIBRARY_PATH PS1 DISPLAY G_FILENAME_ENCODING ignoreeof
26 umask 022
28 # Locale and timezone settings.
29 #
30 if [ -f "/etc/locale.conf" ]; then
31 . /etc/locale.conf
32 export LANG LC_ALL
33 fi
34 if [ -f "/etc/TZ" ]; then
35 TZ=`cat /etc/TZ`
36 export TZ
37 fi