1#csh .cshrc file 2 3alias h history 25 4alias j jobs -l 5alias la ls -a 6alias lf ls -FA 7alias ll ls -lA
| 1#csh .cshrc file 2 3alias h history 25 4alias j jobs -l 5alias la ls -a 6alias lf ls -FA 7alias ll ls -lA
|
8alias su su -m
| |
9 10setenv EDITOR vi
| 8 9setenv EDITOR vi
|
11setenv EXINIT 'set autoindent'
| |
12setenv PAGER more
| 10setenv PAGER more
|
| 11setenv BLOCKSIZE K
|
13
| 12
|
14set path = (~/bin /bin /usr/{bin,games} /usr/local/bin /usr/X11R6/bin) 15
| |
16if ($?prompt) then 17 # An interactive shell -- set some stuff up
| 13if ($?prompt) then 14 # An interactive shell -- set some stuff up
|
| 15 16 set noglob; eval `tset -s`; unset noglob 17 stty -istrip 18
|
18 set filec
| 19 set filec
|
19 set history = 1000 20 set ignoreeof
| 20 set history = 100 21 set savehist = 100
|
21 set mail = (/var/mail/$USER)
| 22 set mail = (/var/mail/$USER)
|
22 set mch = `hostname -s` 23 set prompt = "${mch:q}: {\!} " 24 umask 2
| 23 24 # customize prompt - works with tcsh only 25 set machine = `hostname -s` 26 if ("$TERM" == xterm) then 27 alias cwdcmd 'echo -n "]0;${USER}@${machine}: `dirs`"' 28 set prompt = "> " 29 else 30 alias cwdcmd 'set prompt = "${USER}@${machine}:${cwd}> "' 31 endif 32 cwdcmd 33 34 # fix broken prompt after su 35 alias su 'su \!* ; cwdcmd'
|
25endif
| 36endif
|