envmng/etc/envmng.d/user
agibert f7d6813e0c - Add AIX support,
- Add --list (-l), --listid (-li) and --listenv (-le) options.
- Add and rework many scripts in etc/envmng.d directory...
2009-01-13 13:27:53 +00:00

78 lines
1.3 KiB
Plaintext

# $RCSfile: user,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: User configuration
#-------------------------------------------------------------------------------
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
;;
*rc)
export PS1="$(hostname)(\$LOGNAME)[\$ENVMNG_ID]\$PWD> "
alias env-migtt2='envmng -S migtt2-gnu'
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
;;
*)
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