< Back
Import-OMPModule
Post
NAME Import-OMPModule
SYNOPSIS
Attempt to load and optionally install a powershell module.
SYNTAX
Import-OMPModule [-Name] <String[]> [[-Prefix] <String>] [<CommonParameters>]
DESCRIPTION
Attempt to load and optionally install a powershell module. By default all installed modules are scoped to the
current user.
PARAMETERS
-Name <String[]>
Name of the module
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Prefix <String>
Prefix commands imported.
Required? false
Position? 2
Default value None
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 --------------------------
Import-OMPModule -Name 'posh-git'
If not already imported attempt to import posh-git. If the OhMyPsh profile allows, attempt to automatically
install posh-git if it isn't found.
RELATED LINKS
https://www.github.com/zloeber/OhMyPsh https://www.github.com/zloeber/OhMyPsh
SYNOPSIS
Attempt to load and optionally install a powershell module.
SYNTAX
Import-OMPModule [-Name] <String[]> [[-Prefix] <String>] [<CommonParameters>]
DESCRIPTION
Attempt to load and optionally install a powershell module. By default all installed modules are scoped to the
current user.
PARAMETERS
-Name <String[]>
Name of the module
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Prefix <String>
Prefix commands imported.
Required? false
Position? 2
Default value None
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 --------------------------
Import-OMPModule -Name 'posh-git'
If not already imported attempt to import posh-git. If the OhMyPsh profile allows, attempt to automatically
install posh-git if it isn't found.
RELATED LINKS
https://www.github.com/zloeber/OhMyPsh https://www.github.com/zloeber/OhMyPsh