How to get a list of custom Powershell functions?

后端 未结 3 2015
野性不改
野性不改 2021-02-12 09:46

I use custom powershell functions to make my life easier.

Example:

# custom function
> function build {cmd /c build.ps1}

# invoke the function
>          


        
3条回答
  •  甜味超标
    2021-02-12 10:34

    Add this to your profile:

    $sysfunctions = gci function:
    function myfunctions {gci function: | where {$sysfunctions -notcontains $_} }
    

    and myfunctions will list just the functions that were created since the session started.

提交回复
热议问题