summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/.config/misc/aliasrc3
-rwxr-xr-xscripts/.local/bin/activateVenv6
2 files changed, 8 insertions, 1 deletions
diff --git a/misc/.config/misc/aliasrc b/misc/.config/misc/aliasrc
index 053439a..59a1fb4 100644
--- a/misc/.config/misc/aliasrc
+++ b/misc/.config/misc/aliasrc
@@ -27,4 +27,5 @@ alias grep='grep -i' \
dl='curl -LO' \
m='udisksctl mount -b' \
u='udisksctl unmount -b' \
- fixpg='find "$GNUPGHOME" -type f | xargs -I {} chmod 600 {} && find "$GNUPGHOME" -type d | xargs -I {} chmod 700 {}'
+ fixpg='find "$GNUPGHOME" -type f | xargs -I {} chmod 600 {} && find "$GNUPGHOME" -type d | xargs -I {} chmod 700 {}' \
+ pyenv='. activateVenv'
diff --git a/scripts/.local/bin/activateVenv b/scripts/.local/bin/activateVenv
new file mode 100755
index 0000000..07a1696
--- /dev/null
+++ b/scripts/.local/bin/activateVenv
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+ENVFOLDER=venv
+
+python -m venv "$ENVFOLDER"
+. "$ENVFOLDER"/bin/activate