Skip to content

Make pwsh activator more robust#23

Merged
hsaunders1904 merged 2 commits intomainfrom
make_pwsh_activator_more_robust
Apr 24, 2025
Merged

Make pwsh activator more robust#23
hsaunders1904 merged 2 commits intomainfrom
make_pwsh_activator_more_robust

Conversation

@hsaunders1904
Copy link
Owner

Description

Updates the PowerShell integration so it works in more cases. Previously, cd was re-aliased, which meant using Set-Location was not supported. With this PR, proxy functions are generated for Set, Push and Pop-Location so that pyautoenv works in a wider range of cases. Importantly, this now works with things like ZLocation and zoxide.

Instead of re-aliasing 'cd' in PowerShell, we define a proxy function
for Set-Location, that calls our activation function.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (698c850) to head (567653a).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #23   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          209       212    +3     
=========================================
+ Hits           209       212    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hsaunders1904 hsaunders1904 merged commit d40730d into main Apr 24, 2025
2 checks passed
@hsaunders1904 hsaunders1904 deleted the make_pwsh_activator_more_robust branch April 24, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants