slitaz-base-files annotate 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
rev   line source
pascal@0 1 # /etc/profile: system-wide .profile file for the Bourne shells
pascal@0 2
pascal@0 3 PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
pascal@0 4 LD_LIBRARY_PATH="/usr/lib:/lib"
pascal@0 5
pascal@0 6 # Prompt format for Ash (Bash use /etc/bashrc).
pascal@0 7 #
pascal@0 8 if [ "`id -u`" -eq 0 ]; then
pascal@0 9 # Light green and blue colored prompt.
pascal@0 10 PS1='\e[1;31m\u@\h\e[0m:\e[1;34m\w\e[0m\# '
pascal@0 11 #PS1='\u@\h:\w\# '
pascal@0 12 else
pascal@0 13 # Light green and blue colored prompt.
pascal@0 14 PS1='\e[1;32m\u@\h\e[0m:\e[1;34m\w\e[0m\$ '
pascal@0 15 #PS1='\u@\h:\w\$ '
pascal@0 16 fi
pascal@0 17
pascal@0 18 # Screen display for X and encoding for GTK+ apps.
pascal@0 19 #
pascal@0 20 DISPLAY=:0.0
pascal@0 21 G_FILENAME_ENCODING=iso8859-1
pascal@0 22
pascal@0 23 # Export all variables definied above and set mask.
pascal@0 24 #
pascal@0 25 export PATH LD_LIBRARY_PATH PS1 DISPLAY G_FILENAME_ENCODING ignoreeof
pascal@0 26 umask 022
pascal@0 27
pascal@0 28 # Locale and timezone settings.
pascal@0 29 #
pascal@0 30 if [ -f "/etc/locale.conf" ]; then
pascal@0 31 . /etc/locale.conf
pascal@0 32 export LANG LC_ALL
pascal@0 33 fi
pascal@0 34 if [ -f "/etc/TZ" ]; then
pascal@0 35 TZ=`cat /etc/TZ`
pascal@0 36 export TZ
pascal@0 37 fi