From 64ed1ceb5d22993425fe04bc05e6d53869f06754 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 19 Oct 2017 12:13:34 +0200 Subject: [PATCH] Allow full name in venv and break after first match --- .zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 7277db2..351cd83 100644 --- a/.zshrc +++ b/.zshrc @@ -80,11 +80,12 @@ man () { } venv() { - for d in venv/"$1" ve/"$1" ~/venv/"$1" + for d in venv/"$1" ve/"$1" ~/venv/"$1" "$1" do if [ -f "$d"/bin/activate ] then . "$d"/bin/activate + break fi done }