From 405838d4f8c4f663baf4616c573ef7a1b4e136d1 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 28 May 2024 14:30:34 +0200 Subject: [PATCH] Auto python env --- zsh/exports.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/exports.zsh b/zsh/exports.zsh index 415d900..e3dbd83 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -26,5 +26,11 @@ export WINEDEBUG=-all # for rust export RUST_BACKTRACE=full +# for python +if [ -d $HOME/.venv ]; then + export PATH=$HOME/.venv/bin:$PATH + export VIRTUAL_ENV=$HOME/.venv +fi + export TERM=xterm-256color export REPORTTIME=5