Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

.cshrc

Unix C shell startup configuration file found in the home or root directory. The C shell startup configuration file can contain or perform such functions as set variables, define aliases, perform initializations and various other tasks.

Users who are more familiar with Microsoft Windows and/or Microsoft DOS can relate the autoexec.bat and the config.sys files to the .cshrc file.

Below is an example of a .cshrc file:

# @(#)Cshrc 1.6 91/09/05 SMI

set path = (/usr/local/bin /usr/local/bin/X11 /usr/openwin/bin /usr/bin \
/usr/ucb /usr/etc /usr/local/games .)

alias pwd 'echo $cwd'
umask 066

if ($?USER == 0 || $?prompt == 0) exit

set filec
set history=40
set prompt="`hostname`> "

# Edit the below lines as you wish
setenv EDITOR "pico -t"
setenv OPENWINHOME /usr/openwin
setenv MANPATH /usr/man:/usr/local/man:/usr/openwin/man
setenv LD_LIBRARY_PATH /usr/local/lib:/usr/openwin/lib

limit coredumpsize 0

# commands for interactive shells
alias ls 'ls -F'
alias cd 'cd \!*;echo $cwd'
alias home 'cd ~'

# MS-DOS aliases
alias dir 'ls -alg'
alias del 'rm -i'
alias copy 'cp -i'
alias move 'mv -i'

# Terminal settings
setenv TERM vt100
/usr/bin/stty rows 24
/usr/bin/stty cols 80
/usr/bin/stty erase ^H

Also see: C Shell, Unix help

 

Index

Category:
Dictionary

Related Pages:
# - Definitions

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope