Skip to content
Browse files

Add a switching function for EY like the one for AWS

  • Loading branch information...
1 parent badc0e1 commit 979c47dcf0c4d61644757dd7763c3e2b5efc82ea @jyurek committed Aug 23, 2010
Showing with 13 additions and 2 deletions.
  1. +13 −2 bashrc
View
15 bashrc
@@ -54,15 +54,26 @@ alias rerc='source ~/.bash_profile'
alias mvim='mvim --servername VIM --remote-tab-silent'
export AWS_ACCOUNT=jyurek
-function load_aws {
+function aws_account {
if [ -f $HOME/.aws/$1 ]; then
source $HOME/.aws/$1
export AWS_ACCOUNT=$1
else
echo "No AWS Credentials for $1"
fi
}
-load_aws $AWS_ACCOUNT
+aws_account $AWS_ACCOUNT
+
+export EY_ACCOUNT=thoughtbot
+function ey_account {
+ if [ -f $HOME/.ey/$1 ]; then
+ ln -sf $HOME/.ey/$1 $HOME/.eyrc
+ export EY_ACCOUNT=$1
+ else
+ echo "No EY Credentials for $1"
+ fi
+}
+ey_account $EY_ACCOUNT
if [ -f `$BREW --prefix`/etc/bash_completion ]; then
. `$BREW --prefix`/etc/bash_completion

0 comments on commit 979c47d

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