Switching AWS profiles
This commit is contained in:
parent
fc4d55b1e8
commit
480e860104
2 changed files with 9 additions and 0 deletions
1
aliases
1
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"
|
||||
|
|
|
@ -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 $@
|
||||
|
|
Loading…
Reference in a new issue