On 2014-04-21 Mon 14:22 PM |, Martin Brandenburg wrote:
> 
> # tset on interactive login shells.
> case "$-" in
> *i*)
>         eval `tset -sQ '-munknown:?vt220' $TERM`
>         ;;
> esac
> 

# /etc/profile:
[[ -o interactive ]] &&
{
        [[ ${SHELL} == '/bin/ksh' ]] && . /etc/ksh.kshrc
        [[ ${SHELL} == '/bin/rksh' ]] && . /etc/ksh.kshrc 2>/dev/null

        [[ -x /usr/bin/tset ]] &&
        {
                [[ -n ${XTERM_VERSION} ]] && I='I'
                eval $(/usr/bin/tset -${I}sQ '-munknown:?vt220' $TERM)
        }
}


Then ~/. shell dot files aren't needed as ksh(1):

-l  the shell reads and executes the contents of
    /etc/profile and $HOME/.profile if they exist
    and are readable.


FILES
     ~/.profile           User's login profile.
     /etc/ksh.kshrc       Global configuration file.  Not sourced by default.
     /etc/profile         System login profile.


login(1) sets $LOGNAME, $USER, $SHELL, $TERM, $HOME & $MAIL, also
umask & $PATH are set in login.conf(5), which applies to ALL shells.

Usually.... http://thread.gmane.org/gmane.os.openbsd.misc/211823/

Reply via email to