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

update ldd alias
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 24 09:27:49 2008 +0000 (2008-06-24)
parents a213548c6d8c
children a2a099ded78b
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 [ -n "$DISPLAY" ] || DISPLAY=:0.0
21 G_FILENAME_ENCODING=iso8859-1
23 # ldd fake
24 #
25 which ldd > /dev/null || alias ldd='/lib/ld*.so --list'
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 [ -s "/etc/locale.conf" ]; then
35 . /etc/locale.conf
36 export LANG LC_ALL
37 fi
38 if [ -s "/etc/TZ" ]; then
39 TZ=`cat /etc/TZ`
40 export TZ
41 fi