Skip to content

Configuration

Nate Ferrell edited this page Aug 23, 2019 · 14 revisions

Synopsis

An overview of the Configuration functions in PSProfile.

Description

PSProfile contains certain functions aimed at managing the PSProfile configuration itself. These are primarily wrapping methods on the PSProfile object directly for convenience.

Commands

Exports the PSProfile configuration to the desired path for portability.

Any secrets stored in the $PSProfile.Vault will be exported, but will be unable to be decrypted on another machine or by another user on the same machine due to encryption via Data Protection API.

Invokes $PSProfile.Load() to run through the actions typically performed during the initial import of PSProfile. Useful when adding new items to PSProfile mid-session.

Used when importing a non-standard configuration from a specific path, e.g. one you have migrated from another machine.

Invokes $PSProfile.Save() to save your current PSProfile object back to the Configuration file.

Invokes $PSProfile.Refresh() which runs PSProfile tasks that are not intended to run often, such as Project Path discovery or module installation. This is normally done on a specified frequency (default is 1 hour), calling this function will refresh your PSProfile on command. Useful if you've just updated your PSProfile and would like to refresh it's configuration to reflect the new addition.

Updates the Refresh Frequency for PSProfile. Refreshes are performed during the next PSProfile load after the Refresh Frequency timespan has passed since the last refresh, e.g. if your last refresh was greater than 1 hour ago and your Refresh Frequency is set to 01:00:00, a refresh will occur during the next PSProfile load automatically.

Allows updating a specific setting directly on your PSProfile.

PSProfile

Concepts

Function Help

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

Badges

Azure Pipelines      Discord - Chat      Slack - Chat      Codacy PowerShell Gallery      GitHub Releases      GitHub Releases

Clone this wiki locally