a23872b8c5a268c0b53db7e0439499873a52008b
- Author
- Michael Aquilina <michaelaquilina@gmail.com>
- Committer
- Michael Aquilina <michaelaquilina@gmail.com>
- Date
Message
Enable nullglob only when it is needed
Diff
1diff --git a/autoswitch_virtualenv.plugin.zsh b/autoswitch_virtualenv.plugin.zsh
2index 14d34ee7e9ef7e7fbe906e2fa90e8e48f776c2a2..44182138a5ca91d5f5d1f4efc275119194ee1db9 100644
3--- a/autoswitch_virtualenv.plugin.zsh
4+++ b/autoswitch_virtualenv.plugin.zsh
5@@ -197,7 +197,6 @@ function mkvenv()
6
7
8 function install_requirements() {
9- setopt nullglob
10 if [[ -f "$PWD/setup.py" ]]; then
11 printf "Found a ${PURPLE}setup.py${NORMAL} file. Install dependencies? [y/N]: "
12 read ans
13@@ -209,6 +208,7 @@ function install_requirements() {
14 fi
15 fi
16
17+ setopt nullglob
18 for requirements in *requirements.txt
19 do
20 printf "Found a ${PURPLE}%s${NORMAL} file. Install? [y/N]: " "$requirements"