Commit afa625b
authored
Hide virtualenv when explicitly disabled by the user (#381)
When `VIRTUAL_ENV_DISABLE_PROMPT` is set (to true) by the user, Pure
will not display the virtualenv in the prompt. Setting this manually
likely means the user does not care.
The user can, at any point, run `export VIRTUAL_ENV_DISABLE_PROMPT=1`
and the virtualenv will disappear. Likewise,
`unset VIRTUAL_ENV_DISABLE_PROMPT` will bring it back.
Closes #350.
A big thanks to classner and pfrybar for their efforts and reference
implementations, inspiring this one.1 parent 6c86c74 commit afa625b
1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
171 | 176 | | |
172 | 177 | | |
173 | 178 | | |
174 | | - | |
| 179 | + | |
| 180 | + | |
175 | 181 | | |
176 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
177 | 188 | | |
178 | 189 | | |
179 | 190 | | |
| |||
430 | 441 | | |
431 | 442 | | |
432 | 443 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | 444 | | |
437 | 445 | | |
438 | 446 | | |
| |||
0 commit comments