Skip to content

PSProfile v0.2.0

Compare
Choose a tag to compare
@scrthq scrthq released this 03 Sep 03:20
72efe9e

Changelog

0.2.0 - 2019-09-02

  • Issue #2
    • Added special module import process when the ModuleToImport is EditorServicesCommandSuite so it also automatically registers the available editor commands.
  • Issue #12
    • Added Start-PSProfileConfigurationHelper to provide an easy way to get started with configuring your PSProfile.
  • Issue #6
    • Added PSReadline key to $PSProfile.Settings (Settings management in development still.)
  • Miscellaneous
    • Added support for multiple Command Aliases to be removed at once with Remove-PSProfileCommandAlias.
    • Updated default SCRTHQ prompt that comes with the module.
    • Added support for NerdFonts and PowerLine switches on the prompts to switch char sets depending on the FontType.
    • Added IncludeVault switch parameter to Export-PSProfileConfiguration to prevent exporting the Secrets Vault by default when creating portable configurations.
    • Added _cleanModules() method to PSProfile class to remove any null or empty values hanging over and convert any string values to the full hashtable value instead.
    • Cleaned up logic and fixed bugs in the following functions:
      • Add-PSProfileModuleToImport
      • Remove-PSProfileModuleToImport
      • Add-PSProfileModuleToInstall
      • Remove-PSProfileModuleToInstall
      • Add-PSProfilePlugin
    • Updated CONTRIBUTING.md with snippet to include for PSProfile developers on their PowerShell profile.
    • Refactored Get-PSProfilePrompt to return $null if a name is specified but does not exist on the current PSProfile configuration.
    • Refactored $PSProfile._loadConfiguration() to start with the base value of $Global:PSProfile if present, otherwise import the existing configuration from file. This is necessary to retain the existing configuration if an action is taken that forces the PSProfile to reload, e.g. adding a new plugin to the configuration.
    • Updated $PSProfile._loadPrompt() method to set the value of $function:prompt directly instead of calling Switch-PSProfilePrompt to reduce overhead.

Instructions

IMPORTANT: You MUST have the following modules installed as a prerequisite to using this module, otherwise the module will fail to import! Installing the module from the repo source or the release page does not automatically install dependencies!!

Module Dependencies:

  1. Click here to download the PSProfile.zip file attached to the release.
  2. If on Windows: Right-click the downloaded zip, select Properties, then unblock the file.

    This is to prevent having to unblock each file individually after unzipping.

  3. Unzip the archive.
  4. (Optional) Place the module folder somewhere in your PSModulePath.

    You can view the paths listed by running the environment variable $env:PSModulePath

  5. Import the module, using the full path to the PSD1 file in place of PSProfile if the unzipped module folder is not in your PSModulePath:
    # In $env:PSModulePath
    Import-Module PSProfile
    
    # Otherwise, provide the path to the manifest:
    Import-Module -Path C:\MyPSModules\PSProfile\0.2.0\PSProfile.psd1