#!/bin/csh
 
#---------------------------------------------------------------------
#
#       ~/.cshrc script for workstations at SDSC
#
#       Version 1.6: January 3, 1997
#
#       Questions? E-mail to consult@sdsc.edu or call (619) 534-5100
#       Please run "man cshell" for more information on using this file
#
#       See comments below for help
#
#---------------------------------------------------------------------
 
 
# Run the SDSC standard C shell configurations
setenv SHELLDIR /usr/local/apps/cshell/bin
if ( -r $SHELLDIR/CSHRC ) then
        source $SHELLDIR/CSHRC
else
        echo "SDSC standard configuration script CSHRC missing."
        echo "Please call the consultants at (619) 534-5100."
endif
 
 
#---------------------------------------------------------------------
#
# Put your favorite configurations below here. Commands to include in
# your ~/.cshrc are: umask, set, and alias.
#
#       umask NNN                       File creation mask
#
#       set variable                    Define a "set" variable
#
#       set path = ( $path /new/path )  Add a path (see examples below)
#
#       alias ll 'ls -al'               Define a new command
#       alias ls 'ls -CF'               Default options for ls
#
# Examples are given below. Uncomment and edit them to suit your needs.
#
# Commands intended for only one architecture (sunsparc, sunsparcsolaris,
# sgi4d, decalpha, or crayt3e) should be enclosed in an if statement to
# prevent them from running on other systems:
#
#       if ( "$MACHID" == "sunsparcsolaris" ) then
#               Sun SPARC only commands here
#       endif
#
# Interactive commands (alias and set) go below the two exit commands.
# Exception: "set path" goes above them. See examples below.
#
#---------------------------------------------------------------------
 
# Deny others access to newly created files (use 022 to allow vpr to work).
# umask 077
 
# Add paths
# set path = ( $path /new/path /other/new/path )
 
# Create an alias to an executable (instead of appending path):
# alias gnuplot /usr/local/apps/gnuplot/bin/gnuplot
 
# Stop here if not interactive (i.e. we're running a script)
if ( ! $?prompt ) then
        exit 0
endif
 
# Stop here if this is an NQS job (don't need interactive setup for an NQS job)
if ( $?ENVIRONMENT ) then
        if ( "$ENVIRONMENT" == BATCH ) exit 0
endif
 
# Some aliases you might like
# alias ll 'ls -al'
# alias h 'history'
# alias t 'cd /scratch/s1/$USER'
# alias lo 'logout'
 
# Reset a couple C shell variables back to their defaults
# unset noclobber ignoreeof savehist
 
# Adjust the command history mechanism
# set history=25
# set savehist
 
# Prompt with hostname
# set prompt="`hostname` % "
 
# Prompt with hostname and command number
# set prompt = "`hostname` (\!) % "
 
# Prompt with hostname and current directory
# if ( $?cwd ) then
#       alias cd 'cd \!* ; set prompt="`hostname`:$cwd % "'
#       alias pushd 'pushd \!* ; set prompt="`hostname`:$cwd % "'
#       alias popd 'popd \!* ; set prompt="`hostname`:$cwd % "'
#       cd .
# endif
