site_cshrc
来自「ftam等标准协议服务器和客户端的源代码。」· 代码 · 共 52 行
TXT
52 行
# This is 'CSHRC' - it is invoked by the file .cshrc in your home directory# It gets read by EVERY new shell (csh) that you start.# At login time, this file is read before '.login'# first work out what type of computer we are using:set cputype = "unknown"if ($cputype == "unknown") if (-x /bin/sun3) if { /bin/sun3 } set cputype = "sun"if ($cputype == "unknown") if (-x /bin/sparc) if { /bin/sparc } set cputype = "sparc"if ($cputype == "unknown") if (-x /bin/pyr) if { /bin/pyr } set cputype = "pyr"if ($cputype == "unknown") if (-x /bin/vax) if { /bin/vax } set cputype = "vax"# Name of directory containing all members of this groupset groupdir = ${HOME}/..# Set environment variable to tell X-windows programs where to find thingssetenv X11 /usr/local/lib/X11# path is a list of directories in which the shell will look for programsset path=( ${home}/bin ${home}/bin.${cputype} ${groupdir}/bin \ ${groupdir}/bin.${cputype} /usr/local/bin /usr/ucb /bin /usr/bin \ /usr/hosts /usr/games $X11/share/bin /usr/new .)# history defines how many commands csh will rememberset history = 20# Define the prompt that the system gives when ready for a new commandset prompt = "`hostname`% "# 'alias' provides for some shorthand:# make 'lf' give a useful listing of files showing their typesalias lf "ls -F"# make '.' be short for 'logout'alias . logout# make 'hi' be short for 'history'alias hi history# make 'rm' always ask before removing anythingalias rm "rm -i"# Use a shell variable to store the name of the last directory we were in,# so that 'back' will take us back there.alias cd 'set old="$cwd"; chdir \!*'alias back 'set back="$old"; set old="$cwd"; cd "$back"; unset back; dirs'# Now do any things that your group supervisor wants, before carrying on# with your own .cshrcset grouplib = ${HOME}/../libif ( -r ${grouplib}/CSHRC ) source ${grouplib}/CSHRC
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?