|
|
@ -52,6 +52,10 @@ function prompt_paradox_build_prompt { |
|
|
|
prompt_paradox_start_segment green black '${(e)git_info[ref]}${(e)git_info[status]}' |
|
|
|
prompt_paradox_start_segment green black '${(e)git_info[ref]}${(e)git_info[status]}' |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -n "$python_info" ]]; then |
|
|
|
|
|
|
|
prompt_paradox_start_segment white black '${(e)python_info[virtualenv]}' |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
prompt_paradox_end_segment |
|
|
|
prompt_paradox_end_segment |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -103,6 +107,7 @@ function prompt_paradox_precmd { |
|
|
|
|
|
|
|
|
|
|
|
function prompt_paradox_preexec { |
|
|
|
function prompt_paradox_preexec { |
|
|
|
_prompt_paradox_start_time="$SECONDS" |
|
|
|
_prompt_paradox_start_time="$SECONDS" |
|
|
|
|
|
|
|
python-info |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function prompt_paradox_setup { |
|
|
|
function prompt_paradox_setup { |
|
|
@ -143,6 +148,9 @@ function prompt_paradox_setup { |
|
|
|
'ref' '$(coalesce "%b" "%p" "%c")' \ |
|
|
|
'ref' '$(coalesce "%b" "%p" "%c")' \ |
|
|
|
'status' '%s%D%A%B%S%a%d%m%r%U%u' |
|
|
|
'status' '%s%D%A%B%S%a%d%m%r%U%u' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# %v - virtualenv name. |
|
|
|
|
|
|
|
zstyle ':prezto:module:python:info:virtualenv' format 'virtualenv:%v' |
|
|
|
|
|
|
|
|
|
|
|
# Define prompts. |
|
|
|
# Define prompts. |
|
|
|
PROMPT=' |
|
|
|
PROMPT=' |
|
|
|
${(e)$(prompt_paradox_build_prompt)} |
|
|
|
${(e)$(prompt_paradox_build_prompt)} |
|
|
|