LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 583|回复: 3

/etc/profile deleted

[复制链接]
发表于 2005-6-30 23:03:59 | 显示全部楼层 |阅读模式
/etc/profile

I deleted it ,

anyone can share me it ?
发表于 2005-6-30 23:19:47 | 显示全部楼层
Post by GaryWuGang
/etc/profile

I deleted it ,

anyone can share me it ?


wxd@Gentoo ~ $ cat /etc/profile
  1. # /etc/profile:
  2. # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.23 2003/04/29 21:23:18 azarah Exp $

  3. if [ -e "/etc/profile.env" ]
  4. then
  5.         . /etc/profile.env
  6. fi

  7. # 077 would be more secure, but 022 is generally quite realistic
  8. umask 022

  9. if [ `/usr/bin/whoami` = 'root' ]
  10. then
  11.         # Do not set PS1 for dumb terminals
  12.         if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
  13.         then
  14.                 export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
  15.         fi
  16.         export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
  17. else
  18.         # Do not set PS1 for dumb terminals
  19.         if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
  20.         then
  21.                 export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
  22.         fi
  23.         export PATH="/bin:/usr/bin:${PATH}"
  24. fi
  25. unset ROOTPATH

  26. if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]
  27. then
  28.         export INPUTRC="/etc/inputrc"
  29. fi

  30. # Extract the value of EDITOR
  31. [ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
  32. [ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"
  33. [ -z "$EDITOR" ] && EDITOR="/bin/nano"
  34. export EDITOR
复制代码

wxd@Gentoo ~ $
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-1 08:52:27 | 显示全部楼层
thanks,it does work!
Post by wangxudong
wxd@Gentoo ~ $ cat /etc/profile
# /etc/profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.23 2003/04/29 21:23:18 azarah Exp $

if [ -e "/etc/profile.env" ]
then
        . /etc/profile.env
fi

# 077 would be more secure, but 022 is generally quite realistic
umask 022

if [ `/usr/bin/whoami` = 'root' ]
then
        # Do not set PS1 for dumb terminals
        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
        then
                export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export PATH="/bin:/sbin:/usr/bin:/usr/sbin{ROOTPATH}"
else
        # Do not set PS1 for dumb terminals
        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
        then
                export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export PATH="/bin:/usr/bin{PATH}"
fi
unset ROOTPATH

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]
then
        export INPUTRC="/etc/inputrc"
fi

# Extract the value of EDITOR
[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
export EDITOR

wxd@Gentoo ~ $
回复 支持 反对

使用道具 举报

发表于 2005-7-1 08:52:35 | 显示全部楼层
parrot ~ # equery b /etc/profile
[ Searching for file(s) /etc/profile in *... ]
sys-apps/baselayout-1.11.12-r4 (/etc/profile)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表