Skip to content

Project Paths

Nate Ferrell edited this page Aug 22, 2019 · 4 revisions

Synopsis

An overview of the Project Paths concept in PSProfile.

Description

Project Paths are stored as an array of strings in the PSProfile object property $PSProfile.ProjectPaths. This property is intended for any folders which contain Git repo folders underneath them.

Git repos found within the Project Path directories are added to the hashtable $PSProfile.GitPathMap with the folder name as the key and the full path as the value for each. Various functions leverage this dictionary for argument completers, especially in the functions in the included PSProfile.PowerTools plugin. Example functions that make use of this dictionary are Open-Code, Push-Path and Open-Item.

Any build.ps1 files found in these folders will also be added to a second hashtable $PSProfile.PSBuildPathMap. This enables tab-completion of common build script paths when using Start-BuildScript from PSProfile.PowerTools.

These paths are searched for projects during the PSProfile refresh only. If you add a new Project Path, it is recommended to run Update-PSProfileConfig to immediately refresh your path dictionaries.

Commands

Adds a new Project Path to your PSProfile.

Gets a Project Path or the list of Project Paths from your PSProfile configuration.

Removes a Project Path from 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