分类: BSD
2007-11-21 16:08:41
# $OpenBSD: dot.cshrc,v 1.13 2005/02/13 00:56:13 krw Exp $
#
# csh initialization
umask 22
alias mail Mail
set history=100
set path=(/sbin /usr/sbin /bin /usr/bin /usr/X11R6/bin /usr/local/sbin /usr/local/bin)
set rmstar
set filec
set nobeep
set autolist
setenv BLOCKSIZE 1k
setenv LANG zh_CN.GB2312
#setenv LC_ALL zh_TW.Big5
setenv LC_CTYPE zh_CN.GB2312
setenv XMODIFIERS "@im=fcitx"
setenv PKG_PATH ftp://OpenBSD:OpenBSD@ftp.cnfug.org/OpenBSD/snapshots/packages/`machine -a`/
#setenv PKG_PATH ftp://ftp.iij.ad.jp/pub/OpenBSD/3.8/packages/`machine -a`/
alias cd 'set old="$cwd"; chdir \!*'
alias h history
alias j jobs -l
alias ll ls -l
alias ls ls -F
alias l ls -alF
alias du du -h
alias df df -h
alias back 'set back="$old"; set old="$cwd"; cd "$back"; unset back; dirs'
alias z suspend
alias x exit
alias pd pushd
alias pd2 pushd +2
alias pd3 pushd +3
alias pd4 pushd +4
if ($?prompt) then
#set prompt="`hostname -s`# "
set prompt="%{\e[0;35m%}[%t]%{\e[0;36m%}[%~]%{\e[0;32m%}>>> "
endif