takekazuomi / posh-direnv Goto Github PK
View Code? Open in Web Editor NEWpowershell directory environment switcher
License: Apache License 2.0
powershell directory environment switcher
License: Apache License 2.0
The version of posh-direnv on PSgallery does not appear correct. Specifically the posh-direnv.psm1 file
Hi,
Can we please get the same approval and apply commands exposed for reuse via the command line?
As a power user, I want to manage the .psenvrc content myself, without having to launch notepad every time.
Hi,
posh-direnv often silently fails to apply .psenvrc changes. I go through the Edit-DirEnvRc
workflow, and even close and relaunch PowerShell. But still, the changes fail to take effect.
As a workaround, I have to repeat the same Edit-DirEnvRc
steps over and over. Sometimes I add a dummy blank line, save, then delete the line, resave, and quit notepad.
I suspect the root cause has to do with posh-direnv's overly aggressive requirement for the file contents to be detected to change. In other words, we can improve posh-direnv accuracy by dropping the code that performs difference checks. Just always approve and apply the latest .psenvrc contents on disk, when notepad exits without an error status code.
Update
Even with NO changes to the .psenvrc file, posh-direnv often fails to load the configuration into the PowerShell environment. I very often have to manually execute Edit-DirEnvRc
, add a blank line, save, delete the blank line, save, and quit notepad. In order for the existing .psenvrc contents take effect.
Microsoft has changed the default PowerShell policy. The following requirements are now in effect:
RemoteSigned
level, especially for typical desktop/laptop Windows envionments.Example:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Install-Module -Name posh-direnv
Reference:
Could we update the README to reflect more of these relevant installation details?
Use GitHub Action to push to powershell gallery at the time of release.
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release
You will need to add some automated testing.
Any reason why posh-direnv should not work on win2019 server?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.