# $RCSfile: aix-system,v $
# $Revision: 1.2 $
# $Name:  $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $

# EnvMng Environment configuration
#
# description: AIX System base configuration
#-------------------------------------------------------------------------------

case "$1" in
	*profile)
		#----------------------------------------------------------------------------
		# PATH definitions
		#----------------------------------------------------------------------------
		   path=/usr/linux/bin:/usr/ucb:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/opt/seos/bin:/usr/games
		libpath=/usr/local/lib
		manpath=/usr/local/man:/opt/seos/man:/opt/freeware/man

		export       PATH=$(envmng_path_add       "$PATH"       "$path")
		export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
		export    MANPATH=$(envmng_path_add    "$MANPATH"    "$manpath")

		if [ "$DISPLAY" = "" ]
		then
			export DISPLAY="$($grep "^$LOGNAME:" $envmng_display | $sed -e "s/^$LOGNAME:[ \	]*//" -e "s/[ \	]*#.*$//"):0"
		fi

		stty erase  ^?
		stty kill   ^U
		stty eol    ^@
		stty susp   ^Z
		stty intr   ^C
#		stty rprnt  ^R
		stty werase ^W
		stty lnext  ^V
	;;

	*rc)
		alias ls=ls
	;;

	*)
		echo "$0: Invalid command: [$1] !"
	;;
esac
