- Minor cleanup,

- Add fancy prompt ($PS1) color handling.
This commit is contained in:
agibert 2009-01-13 16:59:17 +00:00
parent f6ac4f0426
commit e1e2f01ed6
4 changed files with 67 additions and 37 deletions

View File

@ -1,7 +1,7 @@
# $RCSfile: aix-system,v $
# $Revision: 1.1 $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
@ -9,16 +9,15 @@
# description: AIX System base configuration
#-------------------------------------------------------------------------------
path=/usr/linux/bin:/usr/ucb:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/opt/seos/bin:/usr/games
shlib_path=/usr/local/lib
manpath=/usr/local/man:/opt/seos/man:/opt/freeware/man
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")

View File

@ -1,7 +1,7 @@
# $RCSfile: hpux-system,v $
# $Revision: 1.1 $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
@ -9,16 +9,19 @@
# description: HP/UX System base configuration
#-------------------------------------------------------------------------------
path=/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/ignite/bin:/opt/OV/bin/OpC:/opt/resmon/bin:/opt/pred/bin:/opt/langtools/bin:/opt/imake/bin:/opt/aCC/bin:/opt/cxperf/bin:/opt/scr/bin:/opt/graphics/common/bin:/opt/STK/bin:/opt/seos/bin
shlib_path=/usr/lib
manpath=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/OV/man/itose/%L:/opt/OV/man/itose:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred/share/man:/opt/mqm/man:/opt/audio/share/man:/opt/blinklink/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/imake/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/cxperf/share/man:/opt/scr/share/man:/opt/graphics/common/man:/opt/EMCpower/share:/opt/STK/share/man
case "$1" in
*profile)
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/ignite/bin:/opt/OV/bin/OpC:/opt/resmon/bin:/opt/pred/bin:/opt/langtools/bin:/opt/imake/bin:/opt/aCC/bin:/opt/cxperf/bin:/opt/scr/bin:/opt/graphics/common/bin:/opt/STK/bin:/opt/seos/bin
shlib_path=/usr/lib
manpath=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/OV/man/itose/%L:/opt/OV/man/itose:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred/share/man:/opt/mqm/man:/opt/audio/share/man:/opt/blinklink/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/imake/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/cxperf/share/man:/opt/scr/share/man:/opt/graphics/common/man:/opt/EMCpower/share:/opt/STK/share/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")

View File

@ -1,7 +1,7 @@
# $RCSfile: ora10,v $
# $Revision: 1.1 $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
@ -11,9 +11,9 @@
case "$1" in
*profile)
export ORACLE_HOME=/home/logiciel/oracle/ora10
export ORACLE_HOME=/home/logiciel/oracle/ora10204
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export NLS_LANG=american_america.we8iso8859p1
export NLS_LANG=french_france.utf8
export NLS_SORT=BINARY
export ORACLE_TERM=vt100
# export ORACLE_RM=Oracle_XA_9
@ -30,11 +30,11 @@ case "$1" in
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$ORACLE_HOME/bin
export PATH=$(envmng_path_add "$PATH" "$path")
path=$ORACLE_HOME/bin
libpath=$ORACLE_HOME/lib32:$ORACLE_HOME/lib
shlib_path=$ORACLE_HOME/lib
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
export PATH=$(envmng_path_add "$PATH" "$path")
export LIBPATH=$(envmng_path_add "$LIBPATH" "$libpath")
;;
*rc)

View File

@ -1,7 +1,7 @@
# $RCSfile: user,v $
# $Revision: 1.2 $
# $Revision: 1.3 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
@ -9,16 +9,15 @@
# description: User configuration
#-------------------------------------------------------------------------------
path=.:~/bin
shlib_path=~/lib
manpath=~/man
case "$1" in
*profile)
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=.:~/bin
libpath=~/lib
manpath=~/man
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")
@ -42,7 +41,36 @@ case "$1" in
;;
*rc)
export PS1="$(hostname)(\$LOGNAME)[\$ENVMNG_ID]\$PWD> "
tty_bold="$(tput bold)"
tty_off="$(tput rmso)"
tty_c1="$(tput setf 1)"
tty_c2="$(tput setf 2)"
tty_c3="$(tput setf 3)"
tty_c4="$(tput setf 4)"
tty_c5="$(tput setf 5)"
tty_c6="$(tput setf 6)"
tty_c7="$(tput setf 7)"
case $shell in
*bash)
tty_bold="\[${tty_bold}\]"
tty_off="\[${tty_off}\]"
tty_c1="\[${tty_c1}\]"
tty_c2="\[${tty_c2}\]"
tty_c3="\[${tty_c3}\]"
tty_c4="\[${tty_c4}\]"
tty_c5="\[${tty_c5}\]"
tty_c6="\[${tty_c6}\]"
tty_c7="\[${tty_c7}\]"
;;
*ksh)
;;
esac
# export PS1="$(hostname)(\$LOGNAME)[\$ENVMNG_ID]\$PWD> "
# export PS1="${tty_c1}> ${tty_c3}"
export PS1="${tty_bold}${tty_c3}$(hostname)${tty_c1}(${tty_c4}\$LOGNAME${tty_c1})${tty_c3}[${tty_c6}\$ENVMNG_ID${tty_c3}]${tty_c2}\$PWD${tty_c3}>${tty_off} "
alias env-migtt2='envmng -S migtt2-gnu'
alias env-dtarget='envmng -S dtarget-gnu'