@ -8,6 +8,7 @@
# Isaac Wolkerstorfer <i@agnoster.net>
# Isaac Wolkerstorfer <i@agnoster.net>
# Jeff Sandberg <paradox460@gmail.com>
# Jeff Sandberg <paradox460@gmail.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
# Milind Shakya <sh.milind@gmail.com>
#
#
# Screenshots:
# Screenshots:
# http://i.imgur.com/0XIWX.png
# http://i.imgur.com/0XIWX.png
@ -52,6 +53,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 yellow black '${python_info[ref]}${python_info[virtualenv]}'
fi
prompt_paradox_end_segment
prompt_paradox_end_segment
}
}
@ -97,6 +102,11 @@ function prompt_paradox_precmd {
git-info
git-info
fi
fi
# Get Virtual env info
if (( $+functions[python-info] )); then
python-info
fi
# Calculate and print the elapsed time.
# Calculate and print the elapsed time.
prompt_paradox_print_elapsed_time
prompt_paradox_print_elapsed_time
}
}
@ -143,6 +153,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'
# Set python-info parameters.
zstyle ':prezto:module:python:info:virtualenv' format '%F{black}py:%v%f'
# Define prompts.
# Define prompts.
PROMPT='
PROMPT='
${(e)$(prompt_paradox_build_prompt)}
${(e)$(prompt_paradox_build_prompt)}