From 9ec1fef62aa0970fcce571b5d4626eecc8725320 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 27 Aug 2021 20:47:23 +0300
Subject: [PATCH] temp_venv shell function.

To create a throwaway Python virtualenv.
---
 .bashrc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.bashrc b/.bashrc
index 2e252c6..64d65c9 100644
--- a/.bashrc
+++ b/.bashrc
@@ -259,6 +259,13 @@ sync_podcasts () (
     unison podcasts
 )
 
+temp_venv () {
+    cdtemp
+    venv .
+    # shellcheck disable=SC1090,SC1091
+    . bin/activate
+}
+
 toux () {
     touch "$@"
     chmod +x "$@"
-- 
GitLab