envmng/etc/envmng.d/user

78 lines
1.3 KiB
Plaintext
Raw Normal View History

2009-01-12 18:59:03 +01:00
# $RCSfile: user,v $
# $Revision: 1.2 $
2009-01-12 18:59:03 +01:00
# $Name: $
# $Date: 2009/01/13 13:27:53 $
2009-01-12 18:59:03 +01:00
# $Author: agibert $
# 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")
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> "
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'
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
echo