Sample .cshrc (csh)



next up previous contents index
Next: Sample .login (csh) Up: SAMPLE DOT FILES Previous: SAMPLE DOT FILES

Sample .cshrc (csh)

 

 
#
# .cshrc    -- sourced by the C-shell each time it runs
#
# don't allow '>' to overwrite files
set noclobber
# Only run following if interactive shell, not a shell script
#
if ({$}?prompt) then
    set prompt="$HOST\% "
#   use file completion
    set filec
#   save last 50 commands
    set history=50
    set savehist=50
#   notify when new mail comes in
    if ( {$}?MAIL ) then
        set mail = (0 /usr/spool/mail/your_name)
    endif

    alias ll ls -lC
    alias ls ls -F
    alias l ls -Fx
#   try this under AIX
    alias tree 'li -R -Obcd'
    alias j jobs -l
    alias h history
    alias hh 'history |less'
    alias mv mv -i
    alias cp cp -i
    alias rm    '/bin/rm -i'
    alias   cd  'cd !*;echo " ";pwd;echo " ";ls'
    alias   cd..    'cd ..'
    alias   print   'pr -l63 -n -f !* | lp'
#   use for fortran print outs
    alias   prtf    'pr -e3 -l66 -w80 -o4 -f !* | lp'