The login files /etc/hepix/login.[c]sh
are provided for the login part.
Here you can modify terminal settings with stty.
If you have problems with your current window size after a login
via telnet you can use the resize command to set TERMCAP capabilities
to the current window size.
Example for csh:
if ( $term == "vt100" || $term == "xterm" || $term == "xterms" ) then if ( $OS == "SunOS" ) then set noglob;/bin/sh -c "eval `resize`" else set noglob;eval `resize -c` endif endif
Example for sh:
if [ "$TERM" = "vt100" -o "$TERM" = "xterm" -o "$TERM" = "xterms" ]; then eval `resize -u` fi
/etc/hepix/aliases.[c]sh
The files /etc/hepix/aliases.[c]sh
can be used to add some
aliases or functions in addition to the standard set of aliases and
functions. It is recommended however to keep additional definitions to
a bare minimum in order to stay compatible with other sites. There should
ideally be a repository that keeps track of all additional definitions
that HEP sites have made in order to avoid name clashes and different
namings of the same command sequences.
Each file can contain resetting of the shell parameters, the shell options,
completion of commands, etc. Of course, there is one file for each specific
shell: kshrc for ksh, bashrc for bash,
zshrc for zsh, tcshrc for tcsh,
cshrc.rc for csh.
/etc/hepix/*rc*
The files kshrc
, cshrc.rc
, tcshrc
, zshrc
,
bashrc
under /etc/hepix
can contain modifications of
the option settings, special parameters dependent on the shell.
It is however not really recommended to do that as it can
really affect your users' way of working. Be careful in this area.
/etc/hepix/termset.[c]sh
The files /etc/hepix/termset.[c]sh
ensure that the
term variable has a reasonable
value and redefine it otherwise. This is not a standard file but
it has proved to be useful to have in all cases a term variable
that matches entries
in the terminfo database or in the termcap file.