/[baselayout]/trunk/etc/profile
Gentoo

Contents of /trunk/etc/profile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 345 - (show annotations) (download)
Sun Apr 6 16:28:27 2003 UTC (16 years ago) by azarah
File size: 915 byte(s)
various fixes; moved .c files to src

1 # /etc/profile:
2 # $Header$
3
4 if [ -e "/etc/profile.env" ]
5 then
6 . /etc/profile.env
7 fi
8
9 # 077 would be more secure, but 022 is generally quite realistic
10 umask 022
11
12 if [ "`/usr/bin/whoami`" = 'root' ]
13 then
14 if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
15 then
16 export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
17 fi
18 export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
19 else
20 if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
21 then
22 export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
23 fi
24 export PATH="/bin:/usr/bin:${PATH}"
25 fi
26 unset ROOTPATH
27
28 if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]
29 then
30 export INPUTRC="/etc/inputrc"
31 fi
32
33 # Extract the value of EDITOR
34 [ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf; echo $EDITOR`" 2>/dev/null
35 [ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic; echo $EDITOR`" 2>/dev/null
36 [ -z "$EDITOR" ] && EDITOR="/bin/nano"
37 export EDITOR

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20