mirror of https://github.com/ohmyzsh/ohmyzsh.git
parent
c81804825c
commit
511ed65408
|
@ -158,7 +158,7 @@ compctl -K _aws_profiles asp acp aws_change_access_key
|
||||||
# AWS prompt
|
# AWS prompt
|
||||||
function aws_prompt_info() {
|
function aws_prompt_info() {
|
||||||
[[ -n "$AWS_PROFILE" ]] || return
|
[[ -n "$AWS_PROFILE" ]] || return
|
||||||
echo "${ZSH_THEME_AWS_PREFIX:=<aws:}${AWS_PROFILE:gs/%/%%}${ZSH_THEME_AWS_SUFFIX:=>}"
|
echo "${ZSH_THEME_AWS_PREFIX=<aws:}${AWS_PROFILE:gs/%/%%}${ZSH_THEME_AWS_SUFFIX=>}"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$SHOW_AWS_PROMPT" != false && "$RPROMPT" != *'$(aws_prompt_info)'* ]]; then
|
if [[ "$SHOW_AWS_PROMPT" != false && "$RPROMPT" != *'$(aws_prompt_info)'* ]]; then
|
||||||
|
|
Loading…
Reference in New Issue