[New-bugs-announce] [issue26348] activate.fish sets VENV prompt incorrectly
report at bugs.python.org
Fri Feb 12 08:08:59 EST 2016
New submission from Dan McCombs:
Currently, the activate.fish VENV script sets fish's prompt to be prepended with a literal "__VENV_PROMPT__" rather than the contents of the $__VENV_PROMPT__ variable as intended.
The attached patch simply adds the missing "$" to the variable in the conditional test and it's usage, so it's only being set if the variable is non-zero, rather than testing if the string "__VENV_PROMPT__" is non-zero like it is doing right now.
The results in the prompt being correctly prepended by "(my_actual_venv_name)".
components: Library (Lib)
nosy: Dan McCombs
title: activate.fish sets VENV prompt incorrectly
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file41907/activate-fish.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce