How to import Chocolatey function, core and extension to PowerShell sessions?

Question:

I find many Chocolatey helper functions:

and extension functions

are very useful when you develop even non Chocolatey packages. Is there any way to import these function to Powershell scripts and Powershell Console sessions?

Answer:

when you install chocolatey, it puts a few lines of code in your powershell profile that load the various extensions & functions. [grin] you can find the various profiles here …


you can find the choco files here …

for me, the loader is here …

the code in my profile that loads it is …

Source:

How to import Chocolatey function, core and extension to PowerShell sessions? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply