#### This .cshrc file works best if your .login file doesn't do anything.
#### Things traditionally put into the .login file should be put into
#### either the first or last section of this file, as appropriate.
#### You might want to modify and decomment (i.e. remove the '#')
#### from any of the lines in this file beginning with a single '#'.
#### See `man 5 .cshrc` for a more detailed description of this file.
echo "Execution du fichier .cshrc"
if ( ! $?DONE_ENVIRONMENT ) then
### This section is executed only once per session (e.g. login or rsh)
### It sets up the environment for the current shell and for any
### subshells or other programs that will be executed from it.
## Set command search rules (see `man showpath`).
setenv PATH `/bin/showpath ${HOME}/bin /.software/local/.admin/bins/bin standard`
## Only uncomment these if you want something different from the
## defaults that are already assumed by termcap and man:
## termcap: ${HOME}/.termcap, mfcf's termcap,the stock termcap
## man: mfcf's man pages, the stock man pages
#setenv TERMPATH `showpath class=term standard`
#setenv MANPATH `showpath class=man standard`
## Used by `setprompt` (see `man setprompt`).
#setenv HOMEUSER "<userid>"
setenv HOMEHOST "<hostname>"
setenv HOSTNAME `hostname`
## Set the appropriate file-creation mask (uncomment one of these).
#umask 02 # Full group access, deny write to others.
#umask 66 # Deny read and write to group and others.
umask 77 # Deny everything to everyone.
#umask 26 # Deny group write, deny read and write to others.
## Remove this if you want to get core dumps.
limit coredumpsize 0k
setenv SHELL_DEPTH -1
setenv DONE_ENVIRONMENT "done"
#appel de tcsh
tcsh
## Set any other environment variables that are *always* needed here.
## Variables used only by interactive programs should be set in the
## interactive section, the last section in this file.
endif
@ _temp = $SHELL_DEPTH + 1
setenv SHELL_DEPTH $_temp
unset _temp
if ( $?TERM && ! $?DONE_TERMINAL ) then
### This section is executed only when we are starting up a new
### interactive session and we haven't yet initialized the terminal.
eval `\setterm sytek:kd404 gandalf:vc404 default:vt100`
## if you need to call stty, do it here.
setenv DONE_TERMINAL "done"
endif
if ( $?prompt ) then
### This section is executed only when the shell is interactive.
### It sets up prompts, history, and other such interactions
### between the user and the shell.
### e.g. "rsh watmath wmi" is not interactive,
### nor is "!wmi" when executed from inside "vi".
## Tell the shell to notify you if you get new mail.
if ( ! $?mail ) set mail=/usr/spool/mail/$user
## Tell the shell to remember your recent commands.
set history=100
set savehist=$history
## Don't let an accidental end-of-file cause an exit.
set ignoreeof
## Shell filename completion, quoting, or other shell options.
# set sanequote
# set filec
## Set your prompt string.
set prompt="`\setprompt`"
endif
### This section is always executed.
### Either set your shell aliases here,
### or put them into your .aliases file.
# alias a.out './a.out'
if ( -r ${HOME}/.aliases ) source ${HOME}/.aliases
if ( ( $SHELL_DEPTH == 0 ) && $?prompt ) then
### This section is executed only once per session,
### and only if the session is interactive.
### (e.g. login or rlogin, but not rsh)
### Set environment variables that are only used by interactive
### programs here (e.g. RNINIT, ORGANIZATION).
## Used by mail and other programs that invoke your favourite editor.
setenv VISUAL "`showpath FindFirst=vi`"
setenv EDITOR "$VISUAL"
## You might want to wrap these around some or all of the
## rest of this section:
## if ( "$HOSTNAME" == "$HOMEHOST" ) then
## if ( "$USER" == "$HOMEUSER" ) then
## endif
## endif
if ( ! $?DISPLAY ) then
## This section invokes programs that you want executed when
## you first sign on. They are not executed for X11
## since they would be invoked in every new window.
## For X11, they should be started up from one's
## .xsession file instead.
## If the terminal has a status line, run the sysline program.
#if ( ( "$TERM" =~ *-s ) || ( "$TERM" =~ *-s- ) ) sysline -D -l -r -t
## Do what you normally want when you first sign on.
read_system_news
#if ( ! -z $mail ) mail
endif
endif
# DEFINITIONS PERSONNELLES
echo "Bienvenu sur le compte FTURI"
echo "Chargement du fichier autoexec.bat"
source ~/unix/autoexec.bat
if ( ! $?APPEL_SHELL ) then
setenv APPEL_SHELL -1
endif
@ _tempo = $APPEL_SHELL + 1
setenv APPEL_SHELL $_tempo
unset _tempo
if ( $APPEL_SHELL == 0) then
echo "Chargement du fichier config.sys"
source unix/config.sys
endif
echo "Fin du fichier .CSHRC"