Index: head/etc/root/dot.login =================================================================== --- head/etc/root/dot.login (revision 320669) +++ head/etc/root/dot.login (revision 320670) @@ -1,9 +1,12 @@ # $FreeBSD$ # # .login - csh login script, read by login shell, after `.cshrc' at login. # # see also csh(1), environ(7). # +# Query terminal size; useful for serial lines. +if ( -x /usr/bin/resizewin ) /usr/bin/resizewin -z + # Uncomment to display a random cookie each login: # if ( -x /usr/bin/fortune ) /usr/bin/fortune -s Index: head/etc/root/dot.profile =================================================================== --- head/etc/root/dot.profile (revision 320669) +++ head/etc/root/dot.profile (revision 320670) @@ -1,10 +1,12 @@ # $FreeBSD$ # PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin export PATH HOME=/root export HOME TERM=${TERM:-xterm} export TERM PAGER=more export PAGER + +if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi Index: head/share/skel/dot.login =================================================================== --- head/share/skel/dot.login (revision 320669) +++ head/share/skel/dot.login (revision 320670) @@ -1,8 +1,9 @@ # $FreeBSD$ # # .login - csh login script, read by login shell, after `.cshrc' at login. # # see also csh(1), environ(7). # +if ( -x /usr/bin/resizewin ) /usr/bin/resizewin -z if ( -x /usr/bin/fortune ) /usr/bin/fortune freebsd-tips Index: head/share/skel/dot.profile =================================================================== --- head/share/skel/dot.profile (revision 320669) +++ head/share/skel/dot.profile (revision 320670) @@ -1,24 +1,27 @@ # $FreeBSD$ # # .profile - Bourne Shell startup script for login shells # # see also sh(1), environ(7). # # These are normally set through /etc/login.conf. You may override them here # if wanted. # PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH # BLOCKSIZE=K; export BLOCKSIZE # Setting TERM is normally done through /etc/ttys. Do only override # if you're sure that you'll never log in via telnet or xterm or a # serial line. # TERM=xterm; export TERM EDITOR=vi; export EDITOR PAGER=more; export PAGER # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV +# Query terminal size; useful for serial lines. +if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi + if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi