modify-xinitrc

来自「具有IDE功能的编辑器」· 代码 · 共 59 行

TXT
59
字号
#!/bin/shF=/usr/lib/X11/xinit/xinitrcOF=/usr/lib/X11/xinit/Xclients# check if the command is already present:if grep coolicon $OF >/dev/null 2>&1 | grep coolicon $F >/dev/null 2>&1 ; then    exit 0fiTF=/tmp/cooledit-installcat $F | sed -e '/^if.*Xclients/,$D' > $TF# estimate the speed of this machine:BOGOMIPS=`cat /proc/cpuinfo | grep bogomips | head -1 | cut -f2 -d: | cut -f1 -d.`if test -z "$BOGOMIPS" ; then    BOGOMIPS=50fiif test "$BOGOMIPS" -gt "500" ; then    BOGOMIPS=500fi# add use of shape extension if this is a fast machine:if test "$BOGOMIPS" -gt "80" ; then    OPTIONS="-s -X $BOGOMIPS"else    OPTIONS="-X $BOGOMIPS"ficat >> $TF <<EOF# start cooliconif coolicon --version >/dev/null 2>&1 ; then    if test -f \$MAIL ; then	MFILE=\$MAIL    elif test -f /var/spool/mail/\$LOGNAME ; then	MFILE=/var/spool/mail/\$LOGNAME    elif test -f /var/mail/\$LOGNAME ; then	MFILE=/var/mail/\$LOGNAME    else	MFILE=""    fi    if test -f \$MFILE ; then	coolicon $OPTIONS -M \$MFILE 2>&1 | coolmessage &    else	coolicon $OPTIONS 2>&1 | coolmessage &    fifiEOFsed -e '/^if.*Xclients/,$!D' $F >> $TFcp $F $F.pre-cooliconcat $TF > $Frm $TFexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?