cshの設定ファイル(2002/02/14) 
 

csh

csh の環境設定ファイルは .cshrc です。ログインするユーザのホームディレクトリ直下に .cshrc を置く事により自動的に読み込まれ設定されます。下記は、その内容です。ファイルは、ここ

#
# Prompt pattern for tcsh. Each sequesnce means following features.
# If you want to know more, please type ``man tcsh''.
# %m HOSTNAME (before first dot)
# %n Your login-name
# %c Current directory
# %h Current history number
set prompt="%n@%m(%c)%h% "

# Directory list for executable commands.
# /opt/local/bin Local tools (not bundled with OS)
# /opt/sfw/bin GNU tools
# /usr/ccs/bin System bundled development commands
# /usr/openwin/bin OpenWindows (X-Window) commands
# /usr/bin System bundled commands
set path=( /usr/local/bin /usr/local/sbin \
           /usr/bin /bin /usr/sbin /sbin /usr/ccs/bin \
           /opt/sfw/bin /usr/openwin/bin /usr/ucb .)

# Number of history events to save
set history=20
set autologout=0
unset watch

# Set japanese locale environment
setenv LANG ja

# Use less commands as pager (default is more commands)
setenv TERM vt100

# Directory list for online manual
#setenv MANPATH /usr/local/man:/usr/share/man:/usr/man
setenv LD_LIBRARY_PATH /usr/local/lib:/lib:/usr/lib

# umask
umask 022

#
#setenv autologout 1200
set history=200

#
stty intr ^C
stty erase ^H
# stty istrip
setenv TERM vt100

# alias
alias ls ls -CFa
alias la ls -a
alias rm rm -i
alias cp cp -i
alias h history
alias mv 'mv -i'
alias l 'ls -lag'
alias . 'echo $cwd'
alias .. 'set dot=$cwd;cd ..'
alias cd 'chdir \!*;echo $cwd'
alias grep grep -n

if ( -x /usr/ucb/hostname ) then
   set host = "`uname -n`"
   set prompt="%n@%m% "
else
   set prompt = "! csh> "
endif

←topへ