slitaz-base-files diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rootfs/etc/profile	Mon Dec 24 18:22:52 2007 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +# /etc/profile: system-wide .profile file for the Bourne shells
     1.5 +
     1.6 +PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
     1.7 +LD_LIBRARY_PATH="/usr/lib:/lib"
     1.8 +
     1.9 +# Prompt format for Ash (Bash use /etc/bashrc).
    1.10 +#
    1.11 +if [ "`id -u`" -eq 0 ]; then
    1.12 +	# Light green and blue colored prompt.
    1.13 +	PS1='\e[1;31m\u@\h\e[0m:\e[1;34m\w\e[0m\# '
    1.14 +	#PS1='\u@\h:\w\# '
    1.15 +else
    1.16 +	# Light green and blue colored prompt.
    1.17 +	PS1='\e[1;32m\u@\h\e[0m:\e[1;34m\w\e[0m\$ '
    1.18 +	#PS1='\u@\h:\w\$ '
    1.19 +fi
    1.20 +
    1.21 +# Screen display for X and encoding for GTK+ apps.
    1.22 +#
    1.23 +DISPLAY=:0.0
    1.24 +G_FILENAME_ENCODING=iso8859-1
    1.25 +
    1.26 +# Export all variables definied above and set mask.
    1.27 +#
    1.28 +export PATH LD_LIBRARY_PATH PS1 DISPLAY G_FILENAME_ENCODING ignoreeof
    1.29 +umask 022
    1.30 +
    1.31 +# Locale and timezone settings.
    1.32 +#
    1.33 +if [ -f "/etc/locale.conf" ]; then
    1.34 +	. /etc/locale.conf
    1.35 +	export LANG LC_ALL
    1.36 +fi
    1.37 +if [ -f "/etc/TZ" ]; then
    1.38 +	TZ=`cat /etc/TZ`
    1.39 +	export TZ
    1.40 +fi