From 86034e3f026811dcc00e940244f1f2762f51feeb Mon Sep 17 00:00:00 2001 From: Doncho Gunchev Date: Sat, 15 Feb 2025 23:47:35 +0200 Subject: [PATCH] Improve python virtual environment support (uv). --- etc/profile.d/z-ps-twtty-7.sh | 6 +----- gwebu-profile.spec.in | 5 ++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/etc/profile.d/z-ps-twtty-7.sh b/etc/profile.d/z-ps-twtty-7.sh index bc6f513..6a06f0f 100755 --- a/etc/profile.d/z-ps-twtty-7.sh +++ b/etc/profile.d/z-ps-twtty-7.sh @@ -81,11 +81,7 @@ function prompt_command() { local prompt="--($my_D, Err ${my_P[*]}, $my_TTY)---($PWD)--" if [ -n "${VIRTUAL_ENV:-}" ] && [ -n "$_OLD_VIRTUAL_PS1" ]; then - if [ -n "$VIRTUAL_ENV_PROMPT" ]; then - export my_VENV="$VIRTUAL_ENV_PROMPT" - else - export my_VENV="${VIRTUAL_ENV##*/}" - fi + export my_VENV="${VIRTUAL_ENV##*/}" prompt="--($my_D, Err ${my_P[*]}, $my_TTY, $my_VENV)---($PWD)--" if [ "${PS1:0:${#my_VENV}+3}" == "($my_VENV) " ]; then # PS1 will be restored by virtual environment's deactivate script. diff --git a/gwebu-profile.spec.in b/gwebu-profile.spec.in index 2cd6673..0c2a7a8 100644 --- a/gwebu-profile.spec.in +++ b/gwebu-profile.spec.in @@ -1,6 +1,6 @@ Summary: Gwebu profile.d - cool date, prompt with history, aliases Name: gwebu-profile -Version: 1.0.5 +Version: 1.0.6 Release: 0 BuildArch: noarch License: GPLv2 @@ -41,6 +41,9 @@ install -m 0644 etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d/ %changelog +* Sat Feb 15 2025 Doncho Gunchev - 1.0.6-0 +- Improve python virtual environment support (uv). + * Wed Oct 16 2024 Doncho Gunchev - 1.0.5-0 - fix: Don't alias ip if iproute is not installed.