From c38c2dd90910e808bbad02dfff269a790e5111f9 Mon Sep 17 00:00:00 2001 From: Patrick Bos Date: Sat, 15 Apr 2017 16:44:05 -0700 Subject: [PATCH] Move python-info call in paradox from preexec to precmd --- modules/prompt/functions/prompt_paradox_setup | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/prompt/functions/prompt_paradox_setup b/modules/prompt/functions/prompt_paradox_setup index c1a808d..c5a8751 100644 --- a/modules/prompt/functions/prompt_paradox_setup +++ b/modules/prompt/functions/prompt_paradox_setup @@ -8,6 +8,7 @@ # Isaac Wolkerstorfer # Jeff Sandberg # Sorin Ionescu +# Patrick Bos # # Screenshots: # http://i.imgur.com/0XIWX.png @@ -90,15 +91,17 @@ function prompt_paradox_precmd { git-info fi + # Get Python environment information. + if (( $+functions[python-info] )); then + python-info + fi + # Calculate and print the elapsed time. prompt_paradox_print_elapsed_time } function prompt_paradox_preexec { _prompt_paradox_start_time="$SECONDS" - if (( $+functions[python-info] )); then - python-info - fi } function prompt_paradox_setup {