From af16e9e68b78be9b439f708792dd1b9bea7695f2 Mon Sep 17 00:00:00 2001 From: Gabriel Smadi Date: Sat, 14 Jul 2018 20:39:19 -0400 Subject: [PATCH] Display only first line of Python 3.7 version --- themes/base.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index 12df1d8a..cc56bdff 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -347,7 +347,7 @@ function condaenv_prompt { } function py_interp_prompt { - py_version=$(python --version 2>&1 | awk '{print "py-"$2;}') || return + py_version=$(python --version 2>&1 | awk 'NR==1{print "py-"$2;}') || return echo -e "${PYTHON_THEME_PROMPT_PREFIX}${py_version}${PYTHON_THEME_PROMPT_SUFFIX}" }