etc里面的profile的配置错误,谁能发一份默认配置我
Tofloor
poster avatar
webroot
deepin
2017-04-04 04:32
Author
配置文件pofile
Reply Favorite View the author
All Replies
avatar
153******45
deepin
2017-04-04 09:20
#1
  1. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  2. # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

  3. if [ "`id -u`" -eq 0 ]; then
  4.   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  5. else
  6.   PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
  7. fi
  8. export PATH

  9. if [ "$PS1" ]; then
  10.   if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
  11.     # The file bash.bashrc already sets the default PS1.
  12.     # PS1='\h:\w\$ '
  13.     if [ -f /etc/bash.bashrc ]; then
  14.       . /etc/bash.bashrc
  15.     fi
  16.   else
  17.     if [ "`id -u`" -eq 0 ]; then
  18.       PS1='# '
  19.     else
  20.       PS1='$ '
  21.     fi
  22.   fi
  23. fi

  24. if [ -d /etc/profile.d ]; then
  25.   for i in /etc/profile.d/*.sh; do
  26.     if [ -r $i ]; then
  27.       . $i
  28.     fi
  29.   done
  30.   unset i
  31. fi
  32. tty | egrep -q tty[1-6] && export LC_ALL=C
Copy the Code
Reply View the author