Fix title and removed stale aws prompt

This commit is contained in:
Andrea Mistrali 2020-02-11 14:59:38 +01:00
parent 0a73e27f24
commit ad71b2b2bd
1 changed files with 1 additions and 7 deletions

View File

@ -220,7 +220,7 @@ prompt_pure_precmd() {
unset prompt_pure_cmd_timestamp unset prompt_pure_cmd_timestamp
# Shows the full path in the title. # Shows the full path in the title.
prompt_pure_set_title 'expand-prompt' '%~' prompt_pure_set_title 'expand-prompt' '%2.'
# Modify the colors if some have changed.. # Modify the colors if some have changed..
prompt_pure_set_colors prompt_pure_set_colors
@ -242,11 +242,6 @@ prompt_pure_precmd() {
export VIRTUAL_ENV_DISABLE_PROMPT=12 export VIRTUAL_ENV_DISABLE_PROMPT=12
fi fi
# psvar[13]=
# if [[ -n $AWS_PROFILE ]]; then
# psvar[13]="|${AWS_PROFILE}|"
# fi
# Make sure VIM prompt is reset. # Make sure VIM prompt is reset.
prompt_pure_reset_prompt_symbol prompt_pure_reset_prompt_symbol
@ -788,7 +783,6 @@ prompt_pure_setup() {
# If a virtualenv is activated, display it in grey. # If a virtualenv is activated, display it in grey.
PROMPT='%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)' PROMPT='%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)'
# PROMPT+='%(13V.%F{$prompt_pure_colors[aws]}%13v%f .)'
# Prompt turns red if the previous command didn't exit with 0. # Prompt turns red if the previous command didn't exit with 0.
local prompt_indicator='%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f ' local prompt_indicator='%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f '