diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index d9f1519..3eb05c5 100755 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -58,3 +58,8 @@ nnn_cd () } trap nnn_cd EXIT + +# Check if in tmux and if a venv directory exists activate the python environment +if [ ! -z "$TMUX" ] && [ -d "./env" ]; then + . ./env/bin/activate +fi