# SOFTIMAGE's cshrc settings
#
# The commands in this file are executed each time a new csh shell
# is started.
#

# Set default permissions
umask 022


# Set the prompt
if ( $?prompt ) then
        if ( -o /bin/su ) then
                set prompt = "`hostname`: [1m$cwd \! # [0m"

		# To keep the root prompt
		alias cd       'cd \!:*; set prompt = "`hostname`: [1m$cwd \! # [0m"'
		alias popd     'popd \!:*; set prompt = "`hostname`: [1m$cwd \! # [0m"'
		alias pushd    'pushd \!:*; set prompt = "`hostname`: [1m$cwd \! # [0m"'
        else
                set prompt = "`hostname`: [1m$cwd \! > [0m"

		# To keep the user prompt
		alias cd       'cd \!:*; set prompt = "`hostname`: [1m$cwd \! > [0m"'
		alias popd     'popd \!:*; set prompt = "`hostname`: [1m$cwd \! > [0m"'
		alias pushd    'pushd \!:*; set prompt = "`hostname`: [1m$cwd \! > [0m"'
        endif
endif


# Useful schell setups
set filec           # Set file completion mode
set history = 200   # Save 200 last commands
set ignoreeof       # Do not accept ^D to logout
set notify          # Notify when background jobs are done


# Set some configuration files
source ~/.softimage
source ~/.alias
