# @(#)Cshrc	1.2	06/03/94
#
#
#     $Id: Cshrc,v 1.1 1998/03/16 20:02:47 avvede Exp $
#     $Log: Cshrc,v $
#     Revision 1.1  1998/03/16 20:02:47  avvede
#     Initial move to CVS
#
#
#
#################################################################
#
#         .cshrc file
#
#         initial setup file for both interactive and noninteractive
#         C-Shells
#
#################################################################


# Set openwin as my default window system 
set mychoice=openwin

#
# VAS variables
#
if ( ${?ASEHOME} == 0 ) then
	if ( ${?VASHOME} == 0 ) then
		setenv ASEHOME /usr/ase
	else
		setenv ASEHOME $VASHOME
	endif
endif

set newload=${ASEHOME}/lib
if ( ${?LD_LIBRARY_PATH} == 0 ) then
	setenv LD_LIBRARY_PATH $newload
else
	if ( `echo ${LD_LIBRARY_PATH} | grep ${newload}` == "" ) then
		setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$newload
	endif
endif

#         set up search path

# add directories for local commands
set lpath = (/usr/local/bin ${ASEHOME}/bin ${ASEHOME}/etc /usr/lang /usr/lang/sunc)
if ( ${?mychoice} != 0 ) then
	if ( ${mychoice} == "openwin" ) then
		set lpath = ( /usr/openwin/bin/xview /usr/openwin/bin $lpath )
	endif
endif

set path = (. ~ $lpath ~/bin /usr/local /usr/ucb /usr/bin /usr/etc)

#         cd path

#set lcd = ( )  #  add parents of frequently used directories
#set cdpath = (.. ~ ~/bin ~/src $lcd)

#         set this for all shells

set noclobber

#         aliases for all shells

alias cd            'cd \!*;echo $cwd'
alias cp            'cp -i'
alias mv            'mv -i'
alias rm            'rm -i'
alias pwd           'echo $cwd'
#alias del          'rm -i'
umask 002

#         skip remaining setup if not an interactive shell

if ($?USER == 0 || $?prompt == 0) exit

#          settings  for interactive shells

set history=40
#set ignoreeof
set notify
#set savehist=40
#set prompt="% "
#set prompt="`hostname`{`whoami`}\!: "
set prompt="`whoami`@`hostname` \!: "
#set time=100

#          commands for interactive shells

#date
#pwd

#         other aliases

alias a            alias
alias h            'history \!* | head -39 | more'
alias u            unalias

#alias             clear
#alias list         cat
#alias lock          lockscreen
#alias m             more
#alias mroe          more
#alias type         more

#alias .             'echo $cwd'
#alias ..            'set dot=$cwd;cd ..'
#alias ,             'cd $dot '

#alias dir          ls
#alias pdw           'echo $cwd'
#alias la            'ls -a'
#alias ll            'ls -la'
#alias ls           'ls -F'

#alias pd           dirs
#alias po           popd
#alias pp           pushd

#alias +w            'chmod go+w'
#alias -w            'chmod go-w'
#alias x             'chmod +x'

#alias j             'jobs -l'

#alias bye           logout
#alias ciao          logout
#alias adios         logout

alias psg           'ps -ax | grep \!* | grep -v grep'
#alias punt          kill

#alias r            rlogin
#alias run          source

#alias nms 'tbl \!* | nroff -ms | more'                  # nroff -ms
#alias tms 'tbl \!* | troff -t -ms >! troff.output &'    # troff -ms
#alias tpr 'tbl \!* | troff -t -ms | lpr -t &'           # troff & print
#alias ppr 'lpr -t \!* &'                                # print troffed

#alias lp1           'lpr -P1'
#alias lq1           'lpq -P1'
#alias lr1           'lprm -P1'

#alias sd           'screendump | rastrepl | lpr -v &'

#alias edit         textedit

#alias help          man
#alias key           'man -k'

alias mkae          make

alias emasc	emacs
alias emac	emacs
