diff --git a/zsh/.zshrc b/zsh/.zshrc index b425ce7..fa7a122 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -38,5 +38,18 @@ source <(fzf --zsh) # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh +# get/set AWS_PROFILE env var +aws-profile () { + if [ $# -gt 0 ]; then + export AWS_PROFILE=$1 + fi; + echo $AWS_PROFILE +} + +source ~/.cdl-ssm-util/session-zsh-snippet.sh + +# print current aws session identity +alias aws-whoami="aws --output yaml sts get-caller-identity" + # agent-sync export PATH="/Users/pperkins/dotfiles/agents/bin:$PATH"