1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 04:10:07 +00:00

show minor python version

This commit is contained in:
romkatv 2019-06-20 09:33:53 +02:00
parent 78e78f6d0b
commit 93c24c0e2c

View file

@ -298,7 +298,7 @@ right_prompt_segment() {
function _p9k_python_version() { function _p9k_python_version() {
_p9k_cached_cmd_stdout_stderr python --version || return _p9k_cached_cmd_stdout_stderr python --version || return
emulate -L zsh && setopt extended_glob 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]
} }
################################################################ ################################################################