env

#! /usr/bin/zsh
# $Id: env,v 1.3 2000/10/12 01:16:45 seb Exp $

# Utilisateurs et groupes système
usernames=( $(cut -d: -f1 /etc/passwd) )
groups=( $(cut -d: -f1 /etc/group) )

uname=`uname`

case ${uname} in
Linux)
    filesystems="${${(f)$(</proc/filesystems)}#*  }"
    ;;
*BSD)
    filesystems="ufs procfs cd9660"
    ;;
*)
    filesystems="dummy"
    ;;
esac    


if [ -f ~/.zsh/hosts ] ; then
    hostnames=( `cat ~/.zsh/hosts` )
else
    hostnames=( localhost `hostname -s` )
fi


PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin
PATH=$PATH:/usr/X11R6/bin:/usr/games:/usr/local/games
export  PATH
if [[ `whoami` = root || ${uname} == *BSD ]] ; then
    export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
fi

case "$TERM" in
xterm*|rxvt|linux)
    ;;
*)
    nocolor=yes
    ;;
esac

# um like take this out if you dont use this in /etc or something i guess.
if [ -f ~/.dircolors ] ; then
    eval "`dircolors ~/.dircolors`"
elif [ -f /etc/DIR_COLORS ] ; then
    eval `dircolors /etc/DIR_COLORS`
fi

export LESSCHARSET=latin1
export MINICOM="-c on"
export LESS="-S -g"

LOGCHECK=60
WATCHFMT="%n has %a %l from %M"

# Par rapport à zsh
export HISTFILE=$HOME/.zshhistory
export HISTSIZE=5000
export SAVEHIST=3000
export LISTMAX=0