Skip to content

Commit

Permalink
Add print command to print_prompt for nushell (#2514)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
NotLebedev and pre-commit-ci[bot] committed Mar 10, 2023
1 parent 161979f commit 0398e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/changelog/2514.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add ``print`` command to nushell print_prompt to ensure compatibility with future release of nushell,
where intermediate commands no longer print their result to stdout.
2 changes: 1 addition & 1 deletion tests/unit/activation/test_nushell.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, session):
self.unix_line_ending = not IS_WIN

def print_prompt(self):
return r"$env.VIRTUAL_PROMPT"
return r"print $env.VIRTUAL_PROMPT"

def activate_call(self, script):
# Commands are called without quotes in Nushell
Expand Down

0 comments on commit 0398e5b

Please sign in to comment.