|
|
~/.bahsrc:如下==========================================
#/etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/mysql/bin"
JAVA_HOME="/usr/local/share/j2sdk1.4.2_03"
CLASSPATH="$JAVA_HOME/lib"
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH JAVA_HOME CLASSPAH
umask 022
/etc/profile,内容如下:=====================================
#/etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/mysql/bin"
JAVA_HOME="/usr/local/share/j2sdk1.4.2_03"
CLASSPATH="$JAVA_HOME/lib"
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH JAVA_HOME CLASSPAH
umask 022
现象是,我在用ls时没有颜色。我设置的JAVA_HOME的变量也无效,真是比较奇怪,请大侠们指点迷津。 |
|