From 480e86010489902261a2fe7dfd7d8295ebdf4510 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 8 Jun 2016 10:32:44 -0400 Subject: [PATCH] Switching AWS profiles --- aliases | 1 + functions | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/aliases b/aliases index a4f14ad..8085c96 100644 --- a/aliases +++ b/aliases @@ -8,6 +8,7 @@ alias agl="dpkg --get-selections" alias agL="dpkg --listfiles" alias agu="sudo apt-get update && sudo apt-get upgrade" alias al="zsh_stats" +alias awsp="aws-profile" alias b="bundle" alias be="bundle exec" alias bea="bundle exec rails" diff --git a/functions b/functions index 16be5fd..db94f45 100644 --- a/functions +++ b/functions @@ -1,3 +1,11 @@ +function aws-profile { + if [ $# -eq 0 ]; then + echo Current AWS Profile: $AWS_DEFAULT_PROFILE + else + export AWS_DEFAULT_PROFILE=$1 + fi +} + function g { if [[ $# > 0 ]]; then git $@