From 629f745917ce8c03c761fed3725c4371db4d59c7 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 2 Dec 2023 00:05:20 +0100 Subject: [PATCH] My venvs are in .direnv/ now anyway... --- .bashrc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.bashrc b/.bashrc index 6a1a5ca..c5cd974 100644 --- a/.bashrc +++ b/.bashrc @@ -87,13 +87,7 @@ python_ps1() then pypath="$relative" fi - local venvpath="${pypath%/bin/python}" - if [[ "$venvpath" == ".venv" ]] - then - printf "$1" - else - printf "$1" "$venvpath " - fi + printf "$1" "${pypath%/bin/python}" } if [[ "$TERM" != 'dumb' ]]