mirror of https://github.com/akelge/zsh
Add KK post alias and disable aws CLI
This commit is contained in:
parent
de84310b6a
commit
a9abfcda86
|
@ -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"
|
||||||
|
|
|
@ -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]"
|
||||||
|
|
Loading…
Reference in New Issue