source $SourceHome/.os/common
unalias su
setenv CVS_RSH /usr/bin/ssh
#setenv CVSROOT anoncvs@anoncvs1.usa.openbsd.org:/cvs
#setenv CVSROOT anoncvs@anoncvs3.usa.openbsd.org:/cvs
setenv RSH /usr/bin/ssh
setenv MANPATH /usr/share/man:/usr/local/man
set user=`whoami`
#set path = (/usr/local/bin /usr/ucb /usr/bin /usr/etc /bin /usr/X11R6/bin /usr/sbin /sbin /usr/local/sbin /usr/games /etc .)
#if ("$user" != "root") set path = (~/bin ~/bin/OpenBSD $path)

if -e /usr/local/bin/gnuls then
  alias ls '/usr/local/bin/gnuls $LS_OPTIONS'
endif
if -e /usr/local/bin/ls then
  alias ls '/usr/local/bin/ls $LS_OPTIONS'
endif

if ($user != "root") then
  if -e ~/bin/OpenBSD/ls then
    alias ls '~/bin/OpenBSD/ls $LS_OPTIONS'
  endif
endif

#I like less
if -e /usr/local/bin/less then
  setenv PAGER /usr/local/bin/less
endif
if -e /usr/bin/less then
  setenv PAGER /usr/bin/less
endif

# Compensate for bad coloring in OpenBSD xterm termcap...
#if ($?TERM) then
#  if ($TERM == "xterm") then
#    setenv TERM "Eterm"
#  endif
#endif

#if ($?DISPLAY) then
#else
#  source $SourceHome/.os/xdispset
#endif

# setup ports and packages:
#setenv PKG_PATH "/usr/ports/packages/`machine -a`/all/:ftp://ftp.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/"
setenv PKG_CACHE "/usr/ports/packages/`machine -a`/all/"
