Compare commits
2 Commits
93134c7f30
...
c991af3e0f
Author | SHA1 | Date | |
---|---|---|---|
c991af3e0f | |||
f363cabe84 |
@ -64,6 +64,8 @@ if [ -z $MFA ] || [ -z $MFA_ARN ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
unset AWS_PROFILE
|
||||||
|
|
||||||
printf "✨ Getting session credentials..."
|
printf "✨ Getting session credentials..."
|
||||||
SESSION_JSON=$(aws sts get-session-token --serial-number ${MFA_ARN} --token-code ${MFA})
|
SESSION_JSON=$(aws sts get-session-token --serial-number ${MFA_ARN} --token-code ${MFA})
|
||||||
printf "\n\e[1A\e[K✅ Got session credentials\n"
|
printf "\n\e[1A\e[K✅ Got session credentials\n"
|
||||||
|
7
home/.dotfiles/giantswarm
Normal file
7
home/.dotfiles/giantswarm
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Giant Swarm utils
|
||||||
|
which opsctl &>/dev/null && screen -dm bash -c 'opsctl version update'
|
||||||
|
which devctl &>/dev/null && screen -dm bash -c 'devctl version update'
|
||||||
|
which kubectl-gs &>/dev/null && screen -dm bash -c 'kubectl-gs selfupdate'
|
||||||
|
which opsctl &>/dev/null && opsctl completion zsh > /usr/local/share/zsh/site-functions/_opsctl
|
||||||
|
which devctl &>/dev/null && devctl completion zsh > /usr/local/share/zsh/site-functions/_devctl
|
||||||
|
rm -f ~/.zcompdump; compinit
|
Loading…
Reference in New Issue
Block a user