From efbbc3efb7f47ed2a74212ca571f14896864380f Mon Sep 17 00:00:00 2001 From: Rafael Marçalo Date: Tue, 20 Feb 2024 17:15:49 +0000 Subject: Added python env scripts --- misc/.config/misc/aliasrc | 3 ++- scripts/.local/bin/activateVenv | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 scripts/.local/bin/activateVenv 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 -- cgit v1.2.3