Switching AWS profiles

This commit is contained in:
Andrew Tomaka 2016-06-08 10:32:44 -04:00
parent fc4d55b1e8
commit 480e860104
2 changed files with 9 additions and 0 deletions

View file

@ -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"

View file

@ -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 $@