-
Notifications
You must be signed in to change notification settings - Fork 8
Helpers
An overview of the Helper functions in PSProfile.
PSProfile Helpers are functions that enable easier integration with PSProfile.
These include functions to make prompt customization easier
as well as functions for Plugin developers to leverage to
perform tasks like adding to the PSProfile log with
Write-PSProfileLog
or provide argument completers with
Get-PSProfileArguments
.
Copies parameters from a file or function and returns a RuntimeDefinedParameterDictionary with the copied parameters. Used in DynamicParam blocks.
Gets the duration last command as a timestamp string for use in prompts.
Gets the shortened Path Alias for use in prompts.
Gets argument completers from PSProfile, e.g. the list of prompt names for prompt management functions.
Gets the PSVersion as an easy to read string, including the ability to specify the number of decimal places to limit the resulting version string to.
Tests if the current path is a Git repo folder and returns contextual information about it if so. Useful for prompts.
Writes a PSProfileEvent to the $PSProfile.Log
. Useful for
custom plugins so that logging remains lightweight and
centralized.
- Command Aliases
- Configuration
- Helpers
- Init Scripts
- Meta
- Modules to Import
- Modules to Install
- Path Aliases
- Plugin Paths
- Plugins
- Power Tools
- Project Paths
- Prompts
- Script Paths
- Secrets
- Symbolic Links
- Variables
- Export-PSProfileConfiguration
- Import-PSProfile
- Import-PSProfileConfiguration
- Save-PSProfile
- Start-PSProfileConfigurationHelper
- Update-PSProfileConfig
- Update-PSProfileRefreshFrequency
- Update-PSProfileSetting
- Add-PSProfileToProfile
- Copy-Parameters
- Get-LastCommandDuration
- Get-PathAlias
- Get-PSProfileArguments
- Get-PSVersion
- Test-IfGit
- Write-PSProfileLog
- Add-PSProfileInitScript
- Disable-PSProfileInitScript
- Edit-PSProfileInitScript
- Enable-PSProfileInitScript
- Get-PSProfileInitScript
- Remove-PSProfileInitScript
- Confirm-ScriptIsValid
- Enter-CleanEnvironment
- Format-Syntax
- Get-Definition
- Get-Gist
- Get-LongPath
- Install-LatestModule
- Open-Code
- Open-Item
- Pop-Path
- Push-Path
- Start-BuildScript
- Test-RegEx
- Add-PSProfilePrompt
- Edit-PSProfilePrompt
- Get-PSProfilePrompt
- Remove-PSProfilePrompt
- Switch-PSProfilePrompt