-
-
Save kinow/22b382bf50993fe11328b2cb2101e3d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Alias GAuth to copy current to clipboard | |
function gauth() { | |
[ ! -z "${1}" ] && { | |
/Users/$(whoami)/go/bin/gauth |grep -i "aws ${1}" |sed 's/AWS //' |awk '{print$3}' |pbcopy | |
echo -e "Copied $(pbpaste) clipboard!" | |
} || { | |
/Users/$(whoami)/go/bin/gauth | |
} | |
} | |
alias mfa='gauth' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment