mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
7 lines
299 B
Bash
7 lines
299 B
Bash
# get the python version
|
|
function python_prompt_info() {
|
|
local python_prompt
|
|
python_prompt=$(python -c 'import platform; print(platform.python_version())')
|
|
[[ "${python_prompt}x" == "x" ]] && return
|
|
echo "${ZSH_THEME_PYTHON_PROMPT_PREFIX}${python_prompt}${ZSH_THEME_PYTHON_PROMPT_SUFFIX}"
|
|
}
|