aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-06-20 10:33:53 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-06-20 10:33:53 +0300
commit93c24c0e2cfe182d1f09b84f764961f6f256516a (patch)
tree8c4522e5ba87885f700230970b4c25f825ea3b03 /internal/p10k.zsh
parent78e78f6d0b287efca65c76c4247d771fc1ee4c7d (diff)
show minor python version
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
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]
}
################################################################