From e0c77741349b04dc82bfbc49d067ccd916f85328 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Tue, 8 Mar 2022 11:43:08 -0800 Subject: [PATCH] Add shortcut for setting up new python venv --- xonsh/python.xsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xonsh/python.xsh b/xonsh/python.xsh index ed818d2..35c41aa 100644 --- a/xonsh/python.xsh +++ b/xonsh/python.xsh @@ -14,4 +14,10 @@ def _vv(): d = d.parent +def _setup_python_direnv(): + echo "layout python3" >> .envrc + direnv allow + + aliases["vv"] = _vv +aliases["penv"] = _setup_python_direnv