example16.18
来自「UNIX[1].shell范例精解(第4版)_code」· 18 代码 · 共 41 行
18
41 行
# cat /etc/profile# System-wide environment and startup programs, for login setup# Functions and aliases go in /etc/bashrcpathmunge () { if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi fi}# Path manipulationif [ `id -u` = 0 ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbinfipathmunge /usr/X11R6/bin afterunset pathmunge# No core files by defaultulimit -S -c 0 > /dev/null 2>&1USER="`id -un`"LOGNAME=$USERMAIL="/var/spool/mail/$USER"HOSTNAME=`/bin/hostname`HISTSIZE=1000if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then INPUTRC=/etc/inputrcfiexport PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRCfor i in /etc/profile.d/*.sh ; do if [ -r "$i" ]; then . $i fidoneunset i
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?