📄 init.csh.in
字号:
# init.csh## to use the Fink hierarchy, put the following in your .cshrc:## source BASEPATH/bin/init.csh### Fink - a package manager that downloads source and installs it# Copyright (c) 2001 Christoph Pfisterer# Copyright (c) 2001-2003 The Fink Team## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version 2# of the License, or (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.## define append_path and prepend_path to add directory paths, e.g. PATH, MANPATH.# add to end of pathalias append_path 'if ( $\!:1 !~ \!:2\:* && $\!:1 !~ *\:\!:2\:* && $\!:1 !~ *\:\!:2 && $\!:1 !~ \!:2 ) setenv \!:1 ${\!:1}\:\!:2'# add to front of pathalias prepend_path 'if ( $\!:1 !~ \!:2\:* && $\!:1 !~ *\:\!:2\:* && $\!:1 !~ *\:\!:2 && $\!:1 !~ \!:2 ) setenv \!:1 \!:2\:${\!:1}; if ( $\!:1 !~ \!:2\:* ) setenv \!:1 \!:2`echo \:${\!:1} | /usr/bin/sed -e s%^\!:2\:%% -e s%:\!:2\:%:%g -e s%:\!:2\$%%`'# setup fink related paths. we assume that the fink directories exists.if ( $?PATH ) then prepend_path PATH BASEPATH/bin:BASEPATH/sbinelse setenv PATH BASEPATH/bin:BASEPATH/sbin:/bin:/sbin:/usr/bin:/usr/sbinendifif ( $?MANPATH) then prepend_path MANPATH BASEPATH/share/manelse setenv MANPATH BASEPATH/share/man:/usr/share/manendifif ( $?INFOPATH ) then prepend_path INFOPATH BASEPATH/share/info:BASEPATH/infoelse setenv INFOPATH BASEPATH/share/info:BASEPATH/info:/usr/share/infoendifif ( -r BASEPATH/share/java/classpath ) then if ( $?CLASSPATH ) then set add2classpath = `cat BASEPATH/share/java/classpath` prepend_path CLASSPATH $add2classpath else setenv CLASSPATH `cat BASEPATH/share/java/classpath` endifendifif ( $?PERL5LIB ) then prepend_path PERL5LIB BASEPATH/lib/perl5else setenv PERL5LIB BASEPATH/lib/perl5endif# Add X11 paths (but only if the directories are readable)if ( -r /usr/X11R6/bin ) then append_path PATH /usr/X11R6/binendifif ( -r /usr/X11R6/man ) then append_path MANPATH /usr/X11R6/manendif# read per-package scripts from BASEPATH/etc/profile.dif ( -d BASEPATH/etc/profile.d ) then set nonomatch foreach i ( BASEPATH/etc/profile.d/*.csh ) if ( -x $i ) then source $i endif end unset i nonomatchendifif ($?version) then if ("$version" =~ tcsh*) then complete fink 'n/fink/(install remove selfupdate update-all configure list apropos describe --help --version)/' endifendifset PROXYHTTP=`grep ProxyHTTP BASEPATH/etc/fink.conf | grep -v "#" | cut -d " " -f2`if ( "$PROXYHTTP" != "" ) then setenv HTTP_PROXY $PROXYHTTP setenv http_proxy $PROXYHTTPendifset PROXYFTP=`grep ProxyFTP BASEPATH/etc/fink.conf | grep -v "#" | cut -d " " -f2`if ( "$PROXYFTP" != "" ) then setenv FTP_PROXY $PROXYFTP setenv ftp_proxy $PROXYFTPendif# eof
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -