aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2024-02-21 00:01:07 +0500
committerAnton Bobov <anton@bobov.name>2024-02-21 00:01:07 +0500
commit80ddd8de4b14d0bb828d3b9686dc70536dd9e3fd (patch)
treea690f316adcaa49c45ea50bf0ebdfcbe74375669
parent19b3096392fcc12cb177bd7f4d788b054349c7df (diff)
[zsh] Update modules
m---------files/.zsh/grml-etc-core0
-rw-r--r--files/.zsh/rc/S50_functions9
m---------files/.zsh/z0
m---------files/.zsh/zsh-completions0
4 files changed, 7 insertions, 2 deletions
diff --git a/files/.zsh/grml-etc-core b/files/.zsh/grml-etc-core
-Subproject 4fab92406d02f1cfe2a0a5cb1f57ca6832fbd22
+Subproject bdc51f9788c98839cfcb248b9a16d87c8f99c3e
diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions
index f510bd3..b9f2a08 100644
--- a/files/.zsh/rc/S50_functions
+++ b/files/.zsh/rc/S50_functions
@@ -64,7 +64,8 @@ alias calc="noglob calc"
# Take from @garybernhardt
activate_virtualenv() {
local found_location=""
- for name in venv env ; do
+ local default_name=venv
+ for name in $default_name env ; do
for up in . ../.. ../../.. ; do
if [ -f "$up/$name/bin/activate" ] ; then
found_location="$up/$name/bin/activate"
@@ -78,7 +79,11 @@ activate_virtualenv() {
# create
read -r "answer?Virtualenv not found, create? "
if [[ "$answer" =~ ^[Yy]$ ]] ; then
- virtualenv venv
+ if command -v virtualenv>/dev/null ; then
+ virtualenv $default_name
+ else
+ python3 -m venv $default_name
+ fi
activate_virtualenv
fi
else
diff --git a/files/.zsh/z b/files/.zsh/z
-Subproject b82ac78a2d4457d2ca09973332638f123f065fd
+Subproject d37a763a6a30e1b32766fecc3b8ffd6127f8a0f
diff --git a/files/.zsh/zsh-completions b/files/.zsh/zsh-completions
-Subproject 0cee6ab50885845464724a6501f872f842253b3
+Subproject 507f1f8715edd9f1f403c140fa332644d81ebab