Giter VIP home page Giter VIP logo

posh-direnv's People

Contributors

darkshadow75 avatar de1acr0ix avatar netnode avatar takekazuomi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

posh-direnv's Issues

PS Gallery Update?

The version of posh-direnv on PSgallery does not appear correct. Specifically the posh-direnv.psm1 file

File changes often ignored

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.

Clarify PowerShell policy

Microsoft has changed the default PowerShell policy. The following requirements are now in effect:

  • The execution policy must be opened up to at least RemoteSigned level, especially for typical desktop/laptop Windows envionments.
  • Execution policy changes must be done in an elevated PowerShell context.
  • PowerShell module installation must be done in an elevated PowerShell context.

Example:

  1. Launch PowerShell in administrative mode.
  2. Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
  3. Run Install-Module -Name posh-direnv

Reference:

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.1

Could we update the README to reflect more of these relevant installation details?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.