Linux 版 (精华区)
作 家: titi (江山依旧) on board 'unix'
题 目: .cshrc的文件格式
来 源: 哈尔滨紫丁香站
日 期: Sun Jun 1 10:05:38 1997
出 处: rary.bbs@bbs.net.tsinghua.edu.cn
发信人: wshu (树上的老虎), 信区: Unix
标 题: .cshrc的文件格式
发信站: BBS 水木清华站 (Sat May 31 12:25:25 1997)
.cshrc 档是 csh 被invoke时会执行的 initial shell script
以下是 SUN 的□例 /usr/lib/Cshrc
=======================================================================
# @(#)Cshrc 1.6 91/09/05 SMI
#################################################################
#
# .cshrc file
#
# initial setup file for both interactive and noninteractive
# C-Shells
#
#################################################################
# Set openwin as my default window system
set mychoice=openwin
# set up search path
# add directories for local commands
set lpath = ( )
if ( ${?mychoice} != 0 ) then
if ( ${mychoice} == "openwin" ) then
set lpath = ( /usr/openwin/bin/xview /usr/openwin/bin $lpath )
endif
endif
set path = (. ~ $lpath ~/bin /usr/local /usr/ucb /usr/bin /usr/etc)
# cd path
#set lcd = ( ) # add parents of frequently used directories
#set cdpath = (.. ~ ~/bin ~/src $lcd)
# set this for all shells
set noclobber
# aliases for all shells
alias cd 'cd \!*;echo $cwd'
alias cp 'cp -i'
alias mv 'mv -i'
alias rm 'rm -i'
alias pwd 'echo $cwd'
#alias del 'rm -i'
#umask 002
# skip remaining setup if not an interactive shell
if ($?USER == 0 || $?prompt == 0) exit
# settings for interactive shells
set history=40
set ignoreeof
#set notify
#set savehist=40
#set prompt="% "
#set prompt="`hostname`{`whoami`}\!: "
#set time=100
# commands for interactive shells
#date
#pwd
# other aliases
#alias a alias
#alias h 'history \!* | head -39 | more'
#alias u unalias
#alias clear
#alias list cat
#alias lock lockscreen
#alias m more
#alias mroe more
#alias type more
#alias . 'echo $cwd'
#alias .. 'set dot=$cwd;cd ..'
#alias , 'cd $dot '
#alias dir ls
#alias pdw 'echo $cwd'
#alias la 'ls -a'
#alias ll 'ls -la'
#alias ls 'ls -F'
#alias pd dirs
#alias po popd
#alias pp pushd
#alias +w 'chmod go+w'
#alias -w 'chmod go-w'
#alias x 'chmod +x'
#alias j 'jobs -l'
#alias bye logout
#alias ciao logout
#alias adios logout
#alias psg 'ps -ax | grep \!* | grep -v grep'
#alias punt kill
#alias r rlogin
#alias run source
#alias nms 'tbl \!* | nroff -ms | more' # nroff -ms
#alias tms 'tbl \!* | troff -t -ms >! troff.output &' # troff -ms
#alias tpr 'tbl \!* | troff -t -ms | lpr -t &' # troff & print
#alias ppr 'lpr -t \!* &' # print troffed
#alias lp1 'lpr -P1'
#alias lq1 'lpq -P1'
#alias lr1 'lprm -P1'
#alias sd 'screendump | rastrepl | lpr -v &'
#alias edit textedit
#alias help man
#alias key 'man -k'
#alias mkae make
--
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.18.6]
--
※ 来源:·哈尔滨紫丁香站 bbs1.hit.edu.cn·[FROM: rary.bbs@bbs.net.tsi]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.385毫秒