Browse files

Add aws

  • Loading branch information...
1 parent 125e629 commit 2b4adeb16064ce3faf129a51f6864c9cd1a14b5f @joshuaclayton committed Mar 7, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 zsh_profile.d/aws.zsh
View
11 zsh_profile.d/aws.zsh
@@ -0,0 +1,11 @@
+export JAVA_HOME="$(/usr/libexec/java_home)"
+export AWS_RDS_HOME="/usr/local/Cellar/rds-command-line-tools/1.10.003/libexec"
+
+function set_ec2_credentials {
+ if [[ -n $AWS_APP ]]; then
+ export EC2_PRIVATE_KEY="$HOME/.ssh/$AWS_APP-pkcs8.pem"
+ export EC2_CERT="$HOME/.ssh/$AWS_APP-cert.pem"
+ fi
+}
+
+chpwd_functions=($chpwd_functions set_ec2_credentials)

0 comments on commit 2b4adeb

Please sign in to comment.