+Solaris extensions
authorshort <>
Wed, 7 Jan 2004 14:09:08 +0000 (14:09 +0000)
committershort <>
Wed, 7 Jan 2004 14:09:08 +0000 (14:09 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 579dd77..43f2c8f 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -28,15 +28,22 @@ function _bash_profile_addpath      # <variablename>,<dirpathname>
 }
 
 _bash_profile_addpath -f PATH            "$HOME/bin"
-_bash_profile_addpath -f PATH            "$HOME/sbin"
+_bash_profile_addpath -f PATH            "/share/ProductivityTools/exe"
+_bash_profile_addpath -f PATH            "/opt/sfw/bin"
+# gid(1) dependency on: /opt/sfw/bin
+[ `id -u 2>/dev/null || gid -u` -eq 0 ] && _bash_profile_addpath -f PATH "$HOME/sbin"
+_bash_profile_addpath -f PATH            "/usr/local/bin"
+[ `id -u 2>/dev/null || gid -u` -eq 0 ] && _bash_profile_addpath -f PATH "/usr/local/sbin"
 _bash_profile_addpath -f LD_LIBRARY_PATH "$HOME/lib"
+_bash_profile_addpath -f LD_LIBRARY_PATH "/opt/sfw/lib"
 _bash_profile_addpath -f MANPATH         "$HOME/man"
 _bash_profile_addpath -f MANPATH         "/usr/local/man"
 _bash_profile_addpath -f MANPATH         "/usr/share/man"
-
 _bash_profile_addpath -f -s CVSROOT "short@vellum.cz:/home/short/pserver/cvs"  # default
 _bash_profile_addpath    -s CVSROOT "$HOME/pserver/cvs"
 _bash_profile_addpath    -s CVSROOT "$HOME/cvs"
+_bash_profile_addpath    -s JAVA_HOME "/usr/java"
+_bash_profile_addpath    -s ANT_HOME "/usr/local/ant"
 
 mkdir -p $HOME/lib/perl5       # otherwise CPAN will install to "$HOME/lib/site_perl" etc.
 for _perldir in $(eval "echo {/usr,$HOME}/lib/perl5{,/site_perl}$(
@@ -50,8 +57,19 @@ for _perldir in $(eval "echo {/usr,$HOME}/lib/perl5{,/site_perl}$(
        done
 unset _perldir
 
+### HiveMind_2.0_ga_u6.tar.gz/HiveMindGettingStarted.pdf:26
+_bash_profile_addpath -f PATH "/opt/SUNWhvmd/framework/sparc-sun-solaris/bin"
+_bash_profile_addpath -f LD_LIBRARY_PATH "/opt/SUNWhvmd/framework/sparc-sun-solaris/lib"
+_bash_profile_addpath -f -s HM_PKG_BASE_DIR "/opt/SUNWhvmd"
+_bash_profile_addpath -f -s HM_BASE_DIRS "/opt/SUNWhvmd/examples/tasks"
+_bash_profile_addpath -f CLASSPATH "/opt/SUNWhvmd/launcher/GUI/classes/launcher.jar"
+
 unset -f _bash_profile_addpath
 
+for i in tar ls find cp mv ln md5sum du grep ar chown chmod tail;do
+       which g$i >/dev/null && alias $i=g$i
+       done
+
 alias ls='ls -bF'
 alias l='ls -lbF'
 alias maple="ssh -t vega.fjfi.cvut.cz maple"
@@ -74,11 +92,13 @@ if [ -f "$weblog" ];then alias weblog='tail -n 20000 "$weblog"|grep "\\(~\\|%7[e
 export IGNOREEOF=10
 export TMOUT=900
 export EDITOR='vim'
+export PAGER='/bin/less -MMh5cis'
 [ "`uname`" = "SunOS" ] || export LC_CTYPE=cs_CZ.ISO-8859-2
 export PERL_MM_OPT="PERL=$HOME/bin/perlilib PREFIX=$HOME"
 export WWW_HOME="file:///home/short/.bookmarks.html"
 export GREP_OPTIONS="--binary-files=without-match --directories=skip"
 if [ -n "$PS1" ];then  # set only in interactive sessions
+       export PS1="${USER}[bash]@`/usr/bin/uname -n`# "
        # kbd_mode -u   # utf-8
        # export PS1='\[\017\033%G\]'"$PS1"     # \017=std charmap, \033%G=utf-8
        export PS1='\[\017\]'"$PS1"     # \017=std charmap