feat(python): add function for show version of python, pip, venv

This commit is contained in:
Hanashiko 2025-05-24 19:31:11 +03:00
commit ff91a4e16e
2 changed files with 7 additions and 0 deletions

View file

@ -120,3 +120,9 @@ if [[ "$PYTHON_AUTO_VRUN" == "true" ]]; then
add-zsh-hook chpwd auto_vrun
auto_vrun
fi
function pyver() {
echo "Python: $(python3 --version 2>&1)"
echo "pip: $(pip --version 2>&1)"
echo "Venv: ${VIRTUAL_ENV:-none}"
}