diff options
author | Rafael Marçalo <raroma09@gmail.com> | 2024-02-20 17:15:49 +0000 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2024-02-20 17:15:49 +0000 |
commit | efbbc3efb7f47ed2a74212ca571f14896864380f (patch) | |
tree | c5622563c873bbcef30f1fdd5df22b98762ee37f | |
parent | d0221a9f3979efd97e42319f3b3baab06699c166 (diff) |
Added python env scripts
-rw-r--r-- | misc/.config/misc/aliasrc | 3 | ||||
-rwxr-xr-x | scripts/.local/bin/activateVenv | 6 |
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 |