Generic Laboratory .cshrc File.
#!/bin/csh -f
#================================================================#
# #
# STANDARD GIS/RS LABORATORY .CSHRC FILE #
# #
#================================================================#
#----------------------------------------------------------------#
# SET UP PROMPT #
#----------------------------------------------------------------#
set nameonly = `hostname | awk -F. '{print $1}' `
if ($?USER ) then
if (`/usr/bin/whoami` == root) then
set prompt="#$nameonly($USER.root)>>"
else
set prompt="$nameonly($USER)>>"
endif
else
set prompt="$nameonly>>"
endif
#----------------------------------------------------------------#
# SET UP PATH #
#----------------------------------------------------------------#
set path=( $path $HOME/bin \ /usr/etc \ /usr/local/bin \ . )
#----------------------------------------------------------------#
# SET UP DEFAULT PERMISSIONS #
#----------------------------------------------------------------#
umask 007
#----------------------------------------------------------------#
# SET UP ENVIRONMENT #
#----------------------------------------------------------------#
stty dec
stty erase ^h
xset fp default
set ignoreeof
set history = 50 savehist = 50
set notify
set autocorrect
set autolist
set matchbeep=never
set listjobs=long
set term=iris-ansi-net
setenv PSFAST YES
setenv CANVASCOLOR WHITE
setenv PRINTER hp252
#----------------------------------------------------------------#
# SET UP DEFAULT X SERVER #
#----------------------------------------------------------------#
if ($?REMOTEHOST) then
setenv DISPLAY ${REMOTEHOST}:0.0
else
setenv DISPLAY :0
endif
xhost +
#----------------------------------------------------------------#
# SET UP COMMAND ALIASES #
#----------------------------------------------------------------#
alias lsh 'ls -lt | head'
alias lst 'ls -lt | more'
alias lsl 'ls -l'
alias setd 'setenv DISPLAY \!^\:0.0'
alias pslook 'ps -ef | grep \!^'
alias .. 'set dot=$cwd;cd ..'
alias , 'cd $dot'
alias refresh '/usr/bin/X11/tellwm'
#----------------------------------------------------------------#
# #
#----------------------------------------------------------------#
Last Update:
Tuesday, 17-Jun-2003 11:16:17 EDT
Return to Laboratory for Remote Sensing Home Page