1 |
### start /etc/profile ### |
# /etc/profile: system-wide .profile file for bourne compatible shells |
2 |
|
# $Id$ |
3 |
|
|
4 |
if [ -e "/etc/profile.env" ] |
if [ -e "/etc/profile.env" ] |
5 |
then |
then |
6 |
source /etc/profile.env |
source /etc/profile.env |
7 |
fi |
fi |
8 |
|
|
9 |
#077 would be more secure, but 022 is generally quite realistic |
# 077 would be more secure, but 022 is generally quite realistic |
10 |
umask 022 |
umask 022 |
11 |
|
|
12 |
if [ `/usr/bin/whoami` = 'root' ] |
if [ `/usr/bin/whoami` = 'root' ] |
21 |
then |
then |
22 |
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' |
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' |
23 |
fi |
fi |
24 |
export PATH="/bin:/usr/bin:/usr/X11R6/bin:${PATH}" |
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:${PATH}" |
25 |
fi |
fi |
26 |
unset ROOTPATH |
unset ROOTPATH |
27 |
|
|
31 |
|
|
32 |
if [ -z "$EDITOR" ] |
if [ -z "$EDITOR" ] |
33 |
then |
then |
34 |
source /etc/rc.config 2> /dev/null |
source /etc/conf.d/editor 2> /dev/null |
35 |
#check if $EDITOR is still zero than use default |
# check if $EDITOR is still zero than use default |
36 |
if [ -z "${EDITOR}" ] |
if [ -z "${EDITOR}" ] |
37 |
then |
then |
38 |
EDITOR="/usr/bin/nano" |
EDITOR="/usr/bin/nano" |
40 |
export EDITOR |
export EDITOR |
41 |
fi |
fi |
42 |
|
|
43 |
### end /etc/profile ### |
if [ -e "/etc/conf.d/locale" ] |
44 |
|
then |
45 |
|
source /etc/conf.d/locale |
46 |
|
|
47 |
|
[ -n "$LANG" ] && export LANG || unset LANG |
48 |
|
[ -n "$LC_ADDRESS" ] && export LC_ADDRESS || unset LC_ADDRESS |
49 |
|
[ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE |
50 |
|
[ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE |
51 |
|
[ -n "$LC_IDENTIFICATION" ] && export LC_IDENTIFICATION || unset LC_IDENTIFICATION |
52 |
|
[ -n "$LC_MEASUREMENT" ] && export LC_MEASUREMENT || unset LC_MEASUREMENT |
53 |
|
[ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES |
54 |
|
[ -n "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY |
55 |
|
[ -n "$LC_NAME" ] && export LC_NAME || unset LC_NAME |
56 |
|
[ -n "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC |
57 |
|
[ -n "$LC_PAPER" ] && export LC_PAPER || unset LC_PAPER |
58 |
|
[ -n "$LC_TELEPHONE" ] && export LC_TELEPHONE || unset LC_TELEPHONE |
59 |
|
[ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME |
60 |
|
if [ -n "$LC_ALL" ] |
61 |
|
then |
62 |
|
if [ "$LC_ALL" != "$LANG" ] |
63 |
|
then |
64 |
|
export LC_ALL |
65 |
|
else |
66 |
|
unset LC_ALL |
67 |
|
fi |
68 |
|
else |
69 |
|
unset LC_ALL |
70 |
|
fi |
71 |
|
fi |