On 2014-10-20 Mon 11:32 AM |, worik wrote:
> In a fresh(ish) OpenBSD installation I note .cshrc and .profile in /.
>
Rename them to /.cshrc~ & /.profile~ and see what breaks...
I always delete them due to having /etc/{profile,csh.cshrc,csh.login}
install.site (http://www.openbsd.org/faq/faq4.html#site):
cd /
rm .cshrc .profile
# Tidy up /root
cd /root
rm .klogin .Xdefaults .profile .cshrc .login
...
..
cd /etc
cat rc.firsttime.run >> rc.firsttime
And this in rc.firsttime(8):
...
..
cd /etc
...
..
# Tidy skel/
grep -v '^set path = ' skel/.cshrc | grep -v 'set mail = ' >> csh.cshrc
cat skel/.login >> csh.login
rm skel/{.Xdefaults,.cshrc,.login,.mailrc,.profile}
chmod 700 skel
...
..
PATH, MAIL & umask are defined once in /etc/login.conf - for all shells.
# /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})
}
}
[[ -f /etc/proxy.conf ]] && . /etc/proxy.conf