From 93c24c0e2cfe182d1f09b84f764961f6f256516a Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 20 Jun 2019 09:33:53 +0200 Subject: [PATCH] show minor python version --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 3a90941e..e61be29f 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -298,7 +298,7 @@ right_prompt_segment() { function _p9k_python_version() { _p9k_cached_cmd_stdout_stderr python --version || return emulate -L zsh && setopt extended_glob - [[ $_P9K_RETVAL == (#b)Python\ ([[:digit:]]##.[[:digit:]]##)* ]] && _P9K_RETVAL=$match[1] + [[ $_P9K_RETVAL == (#b)Python\ ([[:digit:].]##)* ]] && _P9K_RETVAL=$match[1] } ################################################################