]> arthur.barton.de Git - ax-zsh.git/commitdiff
Revert 'New "venv" plugin'
authorAlexander Barton <alex@barton.de>
Sun, 4 Nov 2018 13:49:45 +0000 (14:49 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 4 Nov 2018 13:49:45 +0000 (14:49 +0100)
The "venv" plugin basically does the same than the "virtualenv" plugin,
but the latter searches more paths and has better documentation.

I must have been blind when adding this ...

This reverts commit f24d669e4c6014e9db8dc98a714d19f66ff1ba2d.

plugins/venv/README.md [deleted file]
plugins/venv/venv.zshrc [deleted file]

diff --git a/plugins/venv/README.md b/plugins/venv/README.md
deleted file mode 100644 (file)
index 9addab9..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## venv
-
-Add support for Python "venv" virtual environments.
-
-### Command Aliases
-
-- `activate`: try to activate a Python "venv" in the current directory. Both the
-  path names `./bin/activate` as well as `./venv/bin/activate` are tried, and
-  the script found will be sourced (not executed).
diff --git a/plugins/venv/venv.zshrc b/plugins/venv/venv.zshrc
deleted file mode 100644 (file)
index 9fcadbf..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# AX-ZSH: Alex' Modular ZSH Configuration
-# venv.zshrc: Support Python "venv" virtual environments
-
-[[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 92
-
-function activate() {
-       for p (.venv/bin bin); do
-               activate="$PWD/$p/activate"
-               if [[ -r "$activate" ]]; then
-                       source "$activate"
-                       return 0
-               fi
-       done
-       echo "No virtual environment found in \"$PWD\"!"
-       return 1
-}