Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a switching function for EY like the one for AWS

  • Loading branch information...
commit 979c47dcf0c4d61644757dd7763c3e2b5efc82ea 1 parent badc0e1
Jon Yurek authored

Showing 1 changed file with 13 additions and 2 deletions. Show diff stats Hide diff stats

  1. +13 2 bashrc
15 bashrc
@@ -54,7 +54,7 @@ alias rerc='source ~/.bash_profile'
54 54 alias mvim='mvim --servername VIM --remote-tab-silent'
55 55
56 56 export AWS_ACCOUNT=jyurek
57   -function load_aws {
  57 +function aws_account {
58 58 if [ -f $HOME/.aws/$1 ]; then
59 59 source $HOME/.aws/$1
60 60 export AWS_ACCOUNT=$1
@@ -62,7 +62,18 @@ function load_aws {
62 62 echo "No AWS Credentials for $1"
63 63 fi
64 64 }
65   -load_aws $AWS_ACCOUNT
  65 +aws_account $AWS_ACCOUNT
  66 +
  67 +export EY_ACCOUNT=thoughtbot
  68 +function ey_account {
  69 + if [ -f $HOME/.ey/$1 ]; then
  70 + ln -sf $HOME/.ey/$1 $HOME/.eyrc
  71 + export EY_ACCOUNT=$1
  72 + else
  73 + echo "No EY Credentials for $1"
  74 + fi
  75 +}
  76 +ey_account $EY_ACCOUNT
66 77
67 78 if [ -f `$BREW --prefix`/etc/bash_completion ]; then
68 79 . `$BREW --prefix`/etc/bash_completion

0 comments on commit 979c47d

Please sign in to comment.
Something went wrong with that request. Please try again.