< Back

Add-OMPPlugin

Sat Jan 18, 2020 5:40 pm

NAME Add-OMPPlugin



SYNOPSIS

Dot sources a plugin





SYNTAX

Add-OMPPlugin [-Force] [-NoProfileUpdate] [-UpdateConfig] [-DebugOutput] [-Name <String>] [<CommonParameters>]





DESCRIPTION

Dot sources a plugin and enables it for your profile.





PARAMETERS

-Force [<SwitchParameter>]

If the plugin is already loaded use this to force load it again.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-NoProfileUpdate [<SwitchParameter>]

Skip updating the profile



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-UpdateConfig [<SwitchParameter>]

Force an update of the plugin configuration. If a config scriptblock is passed then that will be used as the

update. Otherwise if a config scriptblock is found in the plugin that will be used instead. This is an

advanced parameter that should rarely need to be used.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DebugOutput [<SwitchParameter>]

Show some additional output for debugging purposes.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

The plugin to add to your profile and optionally load.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

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-OMPPlugin -Name 'o365'





-------------------------- EXAMPLE 2 --------------------------



'chocolatey','o365' | Add-OMPPlugin







RELATED LINKS

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