Git Product home page Git Product logo

Comments (5)

corbob avatar corbob commented on June 8, 2024

Install-Module devtoolbox should add it to the $PSModulePath in which case it should auto-load when first needed...

from devtoolbox.

michaeljolley avatar michaeljolley commented on June 8, 2024

I wonder if it doesn't because I've got a customized profile.ps1?

from devtoolbox.

parithon avatar parithon commented on June 8, 2024

Technically you shouldn't need to import the module because PowerShell will do that on your behalf if you try to use one of the registered functions.

from devtoolbox.

brettmillerb avatar brettmillerb commented on June 8, 2024

We can certainly add a link to the PowerShell Gallery page at https://www.powershellgallery.com/packages/devtoolbox, but beyond that, the user needs to add Import-Module devtoolbox at the top of their profile.ps1.

I'd be interested in if there's a better way to install that would automatically add it to the profile. @brettmillerb or @corbob?

the problem you have there is that there are multiple profiles.

I use $Profile.CurrentUserAllHosts whereas a lot of people just use $Profile

But as @parithon said, it will auto-load the module when you try to use one of the commands as long as you are on PowerShell v3+.

from devtoolbox.

michaeljolley avatar michaeljolley commented on June 8, 2024

I'm just going to add a section on the README.md that, like @brettmillerb suggested, links to the PowerShell Gallery.

from devtoolbox.

Related Issues (10)

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.