GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — adds better windows shell support by bmarroquin · Pull Request #5053 · python-poetry/poetry Conversation
|
| if WINDOWS: | ||
| return env.execute(self.path) | ||
| if self._name == "powershell": | ||
| args = ["-NoExit", "-File", str(activate_path)] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Subjective opinion: I like launching with -nologo to not have to see
PowerShell 7.2.1
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
each time.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Given that it is cosmetic, I'd rather not add more arguments past the bare minimum, personally.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Understood. It is definitely subjective on my part -- I like the "clean sheet" in front of me after typing poetry shell, but typing cls isn't a big deal.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
In my "wish list" for a nicer Windows
if WINDOWS: set_console_history_info()
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm a little leery of doing too much -- That being said, I'd still consider the suggestions made by @jrobbins-LiveData if they are added to this PR and don't look to be a big maintenance burden, since they seem to be minor and relatively stable. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I agree, @neersighted, regarding the minimalist approach. Of all my feedback, I think I'd prioritize As to command history support, technically perhaps that's more properly a Windows Terminal concern. The reason I bring it up here is that if one "manually" simply runs In a regular command prompt window (not Windows Terminal), one can address this problem in its Properties page in the spot I've circled |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@neersighted , perhaps there could be an optional "user script" hook (configured via poetry's config mechanism?) , that the internal |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
uses subprocess.run() adds support for pwsh
There was an error while loading. Please reload this page.
|
@neersighted updated the PR. Only handled the changes that keep everything minimal. @jrobbins-LiveData Thanks for all the feedback, appreciate it. I know this doesn't cover your wish list, but there are some minor upgrades 😊. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
(🐞)deactivate-ing a poetry shell doesn't work (on windows?)
PowerShell prompt string not modified by poetry shell
Virtual Environment Does Not Appear Next to Path in Shell
Shell prompt not reflecting virtual environment on Windows 10
Update prompt environment variable when opening shell
There was an error while loading. Please reload this page.