Permalink
Browse files

Merge branch 'master' of github.com:pedz/bash-setup

  • Loading branch information...
2 parents 215a0c1 + 6a8a6a0 commit afec2fca810131d745e52f3de995fad11c9e62d1 @pedz committed Aug 20, 2012
Showing with 18 additions and 7 deletions.
  1. +1 −0 bash_env
  2. +6 −6 bash_funcs
  3. +1 −1 bash_set_path
  4. +2 −0 env/raptor-condor
  5. +8 −0 rc/raptor-condor
View
@@ -4,6 +4,7 @@
export EXINIT=":set aw noic sm ai sw=4"
export EDITOR="${EDITOR:-/usr/bin/vi}"
export VISUAL=/usr/bin/vi
+local_base=/usr/local
if [[ -f ~/.bash/env/${HOSTNAME%%.*}-${USER} ]] ; then
source ~/.bash/env/${HOSTNAME%%.*}-${USER}
View
@@ -36,12 +36,12 @@ function prepend-path
function start-postgres()
{
# Use prepend here to avoid Mac OS X's versions :-P
- prepend-path /usr/local/pgsql/bin
+ prepend-path $local_base/pgsql/bin
}
function stop-postgres()
{
- delete-path /usr/local/pgsql/bin
+ delete-path $local_base/pgsql/bin
}
function start-ztrans()
@@ -129,7 +129,7 @@ function stop-cmvc()
unset CMVC_RELEASE
unset CMVC_TOP
unset PROD
- delete-path /usr/local/cmvc/bin
+ delete-path $local_base/cmvc/bin
}
function start-cmvc()
@@ -145,7 +145,7 @@ function start-cmvc()
export PROD=bos
export CMVC_FAMILY=aix
export CMVC_BECOME=pedzan
- append-path /usr/local/cmvc/bin
+ append-path $local_base/cmvc/bin
}
function stop-retain()
@@ -255,8 +255,8 @@ function dcd ()
function put-local-last ()
{
- delete-path /usr/local/bin
- append-path /usr/local/bin
+ delete-path $local_base/bin
+ append-path $local_base/bin
}
function start-cq()
View
@@ -6,7 +6,7 @@
[[ -n "${debug}" ]] && echo ./bash_set_path
for i in \
- /usr/local/bin \
+ $local_base/bin \
/usr/ucb \
/bin \
/sbin \
View
@@ -0,0 +1,2 @@
+
+local_base=/gsa/ausgsa/projects/r/ruby
View
@@ -0,0 +1,8 @@
+
+[[ -n "${debug}" ]] && echo ./rc/raptor-condor
+
+delete-path-elements '^/gsa/ausgsa/projects/r/ruby/prvm/'
+prepend-path /gsa/ausgsa/projects/r/ruby/prvm/ruby-1.9.3-p194/bin
+
+start-postgres
+. mkPKG_CONFIG_PATH

0 comments on commit afec2fc

Please sign in to comment.