This commit is contained in:
tavo 2024-12-24 23:20:32 -06:00
parent 7628281e93
commit 8e84d36c74
2 changed files with 16 additions and 0 deletions

14
pyv
View file

@ -1,5 +1,19 @@
#!/bin/sh #!/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
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.
_pyv_err() { _pyv_err() {
printf '\033[91mError:\033[0m \033[2m%s\033[0m\n' "$1" printf '\033[91mError:\033[0m \033[2m%s\033[0m\n' "$1"
} }

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (C) 2024 Tavo
_pyv_comp() { _pyv_comp() {
if [ -z "$VENV_DIR" ] ; then if [ -z "$VENV_DIR" ] ; then
if [ -n "$XDG_DATA_HOME" ] ; then if [ -n "$XDG_DATA_HOME" ] ; then