-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Issue
The Nushell activation script no longer handles prompts correctly due to the split of closures and blocks in 0.72.
| if ($old_prompt_command | describe) == 'block' { |
This lines checks for type block, but many/(most?) prompts will now be of type closure, causing them to render as <Closure X> rather than actually running the prompt function.
eg.
(venv) <Closure 11>〉
I don't have the expertise to know whether switching that check to "closure" is the correct fix or not so I'm just leaving this bug report rather than opening a PR. Editing that line in my activate.nu does work as a temporary fix though.
Environment
Provide at least:
- OS: macos 13.1
pip listof the host python wherevirtualenvis installed:
asdf
Package Version
------------ -------
distlib 0.3.6
filelock 3.8.0
pip 22.3.1
platformdirs 2.5.4
setuptools 65.6.3
virtualenv 20.17.1
wheel 0.38.4
Output of the virtual environment creation
This isn't an issue with creation so I'm not including this.
Mrfiregem