From 7264fc8d867344def7e85b66fe8a1fc3e4b83958 Mon Sep 17 00:00:00 2001 From: tavo Date: Tue, 24 Dec 2024 23:29:03 -0600 Subject: [PATCH] custom venv_dir --- pyv | 7 +++++-- pyv_comp.bash | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pyv b/pyv index b017331..d4886c1 100644 --- a/pyv +++ b/pyv @@ -1,7 +1,5 @@ #!/bin/sh -# Copyright (C) 2024 Tavo -# # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later @@ -14,6 +12,9 @@ # You should have received a copy of the GNU General Public License along with # this program. If not, see . +# Set a custom VENV_DIR +#VENV_DIR="$HOME/myvenvs" + _pyv_err() { printf '\033[91mError:\033[0m \033[2m%s\033[0m\n' "$1" } @@ -151,3 +152,5 @@ pyv() { esac fi } + +# Copyright (C) 2024 Tavo diff --git a/pyv_comp.bash b/pyv_comp.bash index 1e47dbf..7f28d7d 100644 --- a/pyv_comp.bash +++ b/pyv_comp.bash @@ -1,6 +1,7 @@ #!/usr/bin/env bash -# Copyright (C) 2024 Tavo +# Set a custom VENV_DIR +#VENV_DIR="$HOME/myvenvs" _pyv_comp() { if [ -z "$VENV_DIR" ] ; then @@ -28,3 +29,5 @@ _pyv_comp() { } complete -F _pyv_comp pyv + +# Copyright (C) 2024 Tavo