< Back

Add-OMPPersonalFunction

Sat Jan 18, 2020 5:40 pm

NAME Add-OMPPersonalFunction



SYNOPSIS

Adds a function to be autoloaded into your session when OMP starts up.





SYNTAX

Add-OMPPersonalFunction [-Path] <String> [[-Recurse]] [[-NoProfileUpdate]] [<CommonParameters>]





DESCRIPTION

Adds a function to be autoloaded into your session when OMP starts up.





PARAMETERS

-Path <String>

Name of the script.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Recurse [<SwitchParameter>]

Add every script in the directory.



Required? false

Position? 2

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-NoProfileUpdate [<SwitchParameter>]

Skip updating the profile.



Required? false

Position? 3

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author: Zachary Loeber



-------------------------- EXAMPLE 1 --------------------------



Add-OMPPersonalFunction -Path 'C:\\users\\jdoe\\scripts\\myscript.ps1'



Adds 'C:\\users\\jdoe\\scripts\\myscript.ps1' to the list of functions that will be loaded with OhMyPsh for this user.



RELATED LINKS

https://github.com/zloeber/ohmypsh https://github.com/zloeber/ohmypsh