# @(#)Cshrc 1.6 91/09/05 SMI
#################################################################
#
#         .cshrc file
#
#         initial setup file for both interactive and noninteractive
#         C-Shells
#
#################################################################


# Define qual o tipo de sistema operacional em uso (AIX ou Solaris)
set OS_type = `/usr/bin/hostname`

if ($OS_type == "sandman") then
# Sistema e AIX
       # Set openwin as my default window system 
       set mychoice=openwin
       #         set up search path and
       # add directories for local commands
       set path = (. ~ ~/bin /usr/local/master /usr/local/master/bin /usr/bin /bin /usr/dt/bin /etc /usr/ccs/bin /usr/sbin /usr/ucb/bin /usr/local/master/gnu/pvm3/lib )
       alias www 'netscape'
       alias xhost /usr/lpp/X11/bin/xhost
       alias edit 'dtpad  \!* &'
   else
# Sistema e Solaris (ou outro qualquer, embora nao funcione 
# corretamente para outros ambientes)
       # Set openwin as my default window system 
       set mychoice=openwin
       #         set up search path and
       # add directories for local commands
       set lpath = ( $path )
# Acrescenta ~/bin e . no caminho de busca (path)
       set path = ( ~ $lpath ~/bin . )
       unset lpath
#       setenv LD_LIBRARY_PATH /usr/local/hagar/lib:/usr/X11R6/lib:/usr/openwin/lib:/usr/local/casper/lib:/usr/lib
#       setenv MANPATH /usr/man:/usr/openwin/man:/usr/X11R6/man:/usr/local/casper/gnu/man:/usr/local/casper/man      
       alias edit '/usr/dt/bin/dtpad  \!* &'
       alias sunedit 'textedit -Wb 240 240 240 -scale large \!* &'
       alias lpq '/usr/ucb/lpq' 
       alias rlock 'rm ~/.netscape/lock'
endif

# to avoid core dumping filling up the whole system.
limit coredumpsize 1

#         cd path

#         set this for all shells
set noclobber

#         aliases for all shells

# define que a cada execucao de cd o prompt e' alterado
alias cd            'cd \!*;set prompt="`hostname|cut -d. -f1`:<`pwd|cut -d/ -f6,7,8,9,10`>"\ \[!\]'

alias rm            'rm -i'
alias del           '/bin/rm'
alias pwd           'echo $cwd'

alias a alias
a h history
a ls  ls -CF
a dt 'dtterm -title CONSOLE -C &'
a casper 'telnet casper'
a beast 'ssh beast'
a hagar 'telnet hagar'
a cmd 'cmdtool -title TRABALHO  -scale large -Wb 0 190 255 +Wi &'
a log logout
a bye 'clear;logout'
a sand 'setenv DISPLAY sandman:0.0'
setenv EXTRASMENU ~/.text_extras_menu
a pri 'lp -d lp1 \!*.ps'
a prc 'lp -d color1 -o nobanner \!*.ps'

#         skip remaining setup if not an interactive shell
if ($?USER == 0 || $?prompt == 0) exit

#          settings  for interactive shells
set history=40
set ignoreeof
set prompt="`hostname|cut -d. -f1`:<`pwd|cut -d/ -f5,6,7,8,9`>"\ \[!\]

