mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-10 20:55:46 +00:00
Improve python virtual environment support (uv).
This commit is contained in:
parent
df3199976e
commit
86034e3f02
2 changed files with 5 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 <doncho.gunchev@flyrlabs.com> - 1.0.6-0
|
||||
- Improve python virtual environment support (uv).
|
||||
|
||||
* Wed Oct 16 2024 Doncho Gunchev <doncho.gunchev@flyrlabs.com> - 1.0.5-0
|
||||
- fix: Don't alias ip if iproute is not installed.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue