2009-01-12 18:59:03 +01:00
|
|
|
# $RCSfile: user,v $
|
2009-01-13 14:27:53 +01:00
|
|
|
# $Revision: 1.2 $
|
2009-01-12 18:59:03 +01:00
|
|
|
# $Name: $
|
2009-01-13 14:27:53 +01:00
|
|
|
# $Date: 2009/01/13 13:27:53 $
|
2009-01-12 18:59:03 +01:00
|
|
|
# $Author: agibert $
|
|
|
|
|
2009-01-13 14:27:53 +01:00
|
|
|
# EnvMng Environment configuration
|
|
|
|
#
|
|
|
|
# description: User configuration
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2009-01-12 18:59:03 +01:00
|
|
|
path=.:~/bin
|
|
|
|
|
|
|
|
shlib_path=~/lib
|
|
|
|
|
|
|
|
manpath=~/man
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
*profile)
|
|
|
|
export PATH=$(envmng_path_add "$PATH" "$path")
|
|
|
|
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
|
|
|
|
export MANPATH=$(envmng_path_add "$MANPATH" "$man_path")
|
|
|
|
|
2009-01-13 14:27:53 +01:00
|
|
|
if $( which xemacs >/dev/null )
|
|
|
|
then
|
|
|
|
export EDITOR=xemacs
|
|
|
|
else
|
|
|
|
export EDITOR=vi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if $( which less >/dev/null )
|
|
|
|
then
|
|
|
|
export PAGER=less
|
|
|
|
else
|
|
|
|
export PAGER=more
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -o emacs
|
|
|
|
# set -o vi
|
2009-01-12 18:59:03 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
*rc)
|
|
|
|
export PS1="$(hostname)(\$LOGNAME)[\$ENVMNG_ID]\$PWD> "
|
|
|
|
|
2009-01-13 14:27:53 +01:00
|
|
|
alias env-migtt2='envmng -S migtt2-gnu'
|
2009-01-12 18:59:03 +01:00
|
|
|
alias env-dtarget='envmng -S dtarget-gnu'
|
|
|
|
alias env-d2target='envmng -S d2target-gnu'
|
|
|
|
alias env-ksh='envmng --ksh'
|
|
|
|
alias env-bash='envmng --bash'
|
2009-01-13 14:27:53 +01:00
|
|
|
|
|
|
|
set -o emacs
|
|
|
|
# set -o vi
|
2009-01-12 18:59:03 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "$0: Invalid command: [$1] !"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -f ~/.envmng_user ]
|
|
|
|
then
|
|
|
|
case "$1" in
|
|
|
|
*profile)
|
|
|
|
echo "envmng: profiling [user:$LOGNAME]..."
|
|
|
|
;;
|
|
|
|
|
|
|
|
*rc)
|
|
|
|
echo "envmng: rcing [user:$LOGNAME]..."
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
. ~/.envmng_user $1
|
|
|
|
fi
|
|
|
|
|
2009-01-13 14:27:53 +01:00
|
|
|
echo
|