external help file | Module Name | online version | schema |
---|---|---|---|
PSPreworkout-help.xml |
PSPreworkout |
2.0.0 |
Initialize configuration your PowerShell environment and git.
Initialize-PSEnvironmentConfiguration [[-Name] <String>] [[-Email] <String>] [[-CentralProfile] <String>]
[[-Font] <String>] [[-Packages] <String[]>] [-SkipPackages] [[-Modules] <String[]>] [-SkipModules]
[<CommonParameters>]
Install supporting packages, configure git, and set your console font with this function.
Initialize the PowerShell working environment with a custom font, and set my name and email address for Git commits.
Initialize-PSEnvironmentConfiguration -Name 'Sam Erde' -Email 'sam@example.local' -ConsoleFont 'FiraCode Nerd Font'
Your name to be used for git commits.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Your email to be used for git commits.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The file path to your central PowerShell profile.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The font to use for your consoles (PowerShell, Windows PowerShell, git bash, etc.)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Packages to install with winget.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: @('Microsoft.WindowsTerminal', 'git.git', 'JanDeDobbeleer.OhMyPosh')
Accept pipeline input: False
Accept wildcard characters: False
Option to skip installation of default packages.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
PowerShell modules to install.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: @('CompletionPredictor', 'Microsoft.PowerShell.ConsoleGuiTools', 'Microsoft.PowerShell.PSResourceGet', 'posh-git', 'PowerShellForGitHub', 'Terminal-Icons')
Accept pipeline input: False
Accept wildcard characters: False
Option to skip installation of default modules.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Author: Sam Erde Version: 0.0.2 Modified: 2024/10/12
To Do Add status/verbose output of changes being made Create basic starter profile if none exist Create dot-sourced profile Create interactive picker for packages and modules (separate functions) Bootstrap Out-GridView or Out-ConsoleGridView