envmng/etc/envmng.d/user
2009-01-12 17:59:03 +00:00

56 lines
919 B
Plaintext

# $RCSfile: user,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/12 17:59:03 $
# $Author: agibert $
path=.:~/bin
shlib_path=~/lib
manpath=~/man
case "$1" in
*profile)
set -o emacs
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")
export EDITOR=xemacs
export PAGER=less
;;
*rc)
export PS1="$(hostname)(\$LOGNAME)[\$ENVMNG_ID]\$PWD> "
alias env-dtarget='envmng -S dtarget-gnu'
alias env-d2target='envmng -S d2target-gnu'
alias env-ksh='envmng --ksh'
alias env-bash='envmng --bash'
;;
*)
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