Skip to content

Init Scripts

Nate Ferrell edited this page Sep 23, 2019 · 1 revision

Synopsis

An overview of the Init Scripts concept in PSProfile.

Description

Init Scripts are stored as hashtable in the PSProfile object property $PSProfile.InitScripts.

Each Init Script is referenced by a friendly name and can be enabled or disabled individually. Init Scripts are invoked directly from the PSProfile configuration, so no external script paths are required!

Commands

Adds a new Init Script to your PSProfile.

Gets an Init Script or the list of Init Scripts from your PSProfile configuration.

Removes an Init Script from your PSProfile.

Enables a disabled Init Script on your PSProfile configuration so it is invoked during your next PSProfile import.

Disables an enabled Init Script on your PSProfile configuration so it is not invoked during your next PSProfile import.

Opens the desired Init Script in Visual Studio Code for editing, then saves the edited file back to your PSProfile configuration once closed in Code.

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