You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 0.2.0 - 2019-09-02
* [Issue #2](#2)
* Added special module import process when the `ModuleToImport` is `EditorServicesCommandSuite` so it also automatically registers the available editor commands.
* [Issue #12](#12)
* Added `Start-PSProfileConfigurationHelper` to provide an easy way to get started with configuring your PSProfile.
* [Issue #6](#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.
* Added special module import process when the `ModuleToImport` is `EditorServicesCommandSuite` so it also automatically registers the available editor commands.
* Added `PSReadline` key to `$PSProfile.Settings` (Settings management in development still.)
26
+
* Miscellaneous
27
+
* Added support for multiple Command Aliases to be removed at once with `Remove-PSProfileCommandAlias`.
28
+
* Updated default `SCRTHQ` prompt that comes with the module.
29
+
* Added support for NerdFonts and PowerLine switches on the prompts to switch char sets depending on the FontType.
30
+
* Added `IncludeVault` switch parameter to `Export-PSProfileConfiguration` to prevent exporting the Secrets Vault by default when creating portable configurations.
31
+
* 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.
32
+
* Cleaned up logic and fixed bugs in the following functions:
33
+
*`Add-PSProfileModuleToImport`
34
+
*`Remove-PSProfileModuleToImport`
35
+
*`Add-PSProfileModuleToInstall`
36
+
*`Remove-PSProfileModuleToInstall`
37
+
*`Add-PSProfilePlugin`
38
+
* Updated CONTRIBUTING.md with snippet to include for PSProfile developers on their PowerShell profile.
39
+
* Refactored `Get-PSProfilePrompt` to return `$null` if a name is specified but does not exist on the current PSProfile configuration.
40
+
* 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.
41
+
* Updated `$PSProfile._loadPrompt()` method to set the value of `$function:prompt` directly instead of calling `Switch-PSProfilePrompt` to reduce overhead.
42
+
17
43
## 0.1.9 - 2019-08-26
18
44
19
45
* Renamed `Copy-DynamicParameters` to `Copy-Parameters` for correctness and cleaned up approach for building the ParameterDictionary.
@@ -20,6 +21,27 @@ Thank you for your interest in helping PSProfile grow! Below you'll find some gu
20
21
* Contributions are submitted, reviewed, and accepted using Github pull requests. [Read this article](https://help.github.com/articles/using-pull-requests) for some details. We use the _Fork and Pull_ model, as described there. More info can be found here: [Forking Projects](https://guides.github.com/activities/forking/)
21
22
* Please make sure to leave the `Allow edits from maintainers` box checked when submitting PR's so that any edits can be made by maintainers of the repo directly to the source branch and into the same PR. More info can be found here: [Allowing changes to a pull request branch created from a fork](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/#enabling-repository-maintainer-permissions-on-existing-pull-requests)
22
23
24
+
## Recommendations
25
+
26
+
To provide the easiest PSProfile development experience while ensuring normal consoles remain intact, it is recommended to add the following to your PowerShell profile:
27
+
28
+
```powershell
29
+
$module = if (Test-Path '.\BuildOutput\PSProfile') {
Write-Warning "Error(s) when importing PSProfile from the BuildOutput folder:`n$($Error[0])`nFalling back to installed version"
35
+
Import-Module PSProfile
36
+
}
37
+
}
38
+
else {
39
+
Import-Module PSProfile
40
+
}
41
+
```
42
+
43
+
This will import the most recently built module from the BuildOutput folder if you start your session in the PSProfile repo root (i.e. if you open the project in your default editor). If any errors are hit during module import, fall back to importing the installed version instead to retain access to PowerTools.
0 commit comments