Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

We can have profiles per environment

  • Loading branch information...
commit 8fe190ea2c22c5bd515a3ecc8e66e7f8080ce68f 1 parent 87bd454
James Martin authored
Showing with 9 additions and 0 deletions.
  1. +6 −0 bash_profile
  2. +3 −0  dylan_bash_rc
View
6 bash_profile
@@ -47,3 +47,9 @@ else
PS1='(\h) [\W$(__git_ps1 " (%s)")]\$ '
fi
export PROMPT_COMMAND='echo -ne "\033]0;${PWD/#$HOME/~}\007"'
+
+# Load environment specific config
+PER_ENV_RC=.`hostname`_bash_rc
+if [ -e $PER_ENV_RC ]; then
+ source $PER_ENV_RC
+fi
View
3  dylan_bash_rc
@@ -0,0 +1,3 @@
+STAGING_DIR=/srv/www/staging.jmrtn.com
+alias go_online="sudo sh $STAGING_DIR/go_online"
+alias go_offline="sudo sh $STAGING_DIR/go_offline"
Please sign in to comment.
Something went wrong with that request. Please try again.