Add KK post alias and disable aws CLI

This commit is contained in:
Andrea Mistrali 2024-11-12 16:04:15 +01:00
parent de84310b6a
commit a9abfcda86
Signed by: andre
SSH Key Fingerprint: SHA256:/D780pZnuHMQ8xFII5lAtXWy8zdowtBhgWjwi88p+lI
2 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@ alias kk='kubectl konfig merge ~/.kube/configs/* > ~/.kube/config'
# #
alias -g G="|grep " alias -g G="|grep "
alias -g K="-o yaml | kubectl neat | less" alias -g K="-o yaml | kubectl neat | less"
alias -g KK="-o yaml | less"
alias -g L="|less" alias -g L="|less"
alias -g NO="> /dev/null" alias -g NO="> /dev/null"
alias -g NE="2> /dev/null" alias -g NE="2> /dev/null"

View File

@ -37,7 +37,7 @@ if [ $profile ]; then # We got a profile pattern, look for a match
fi fi
if [ $match ]; then # Single match, setting profile if [ $match ]; then # Single match, setting profile
export AWS_CLI_AUTO_PROMPT=off # export AWS_CLI_AUTO_PROMPT=off
# Set default profile and profile # Set default profile and profile
export AWS_DEFAULT_PROFILE=$match export AWS_DEFAULT_PROFILE=$match
@ -48,7 +48,7 @@ if [ $profile ]; then # We got a profile pattern, look for a match
export AWS_REGION=${region:-$AWS_DEFAULT_REGION} export AWS_REGION=${region:-$AWS_DEFAULT_REGION}
print -P "$FX[bold]activating profile $FG[075]$match$FX[reset]$FX[bold] on region $FG[075]$AWS_REGION$FX[reset]" print -P "$FX[bold]activating profile $FG[075]$match$FX[reset]$FX[bold] on region $FG[075]$AWS_REGION$FX[reset]"
export AWS_CLI_AUTO_PROMPT=on # export AWS_CLI_AUTO_PROMPT=on
return return
else else
print -P "$FX[bold]$FG[009]no match for $profile$FX[reset]" print -P "$FX[bold]$FG[009]no match for $profile$FX[reset]"