-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 0.6.0 - 2019-11-02 * [Issue #21](#21) - _Thank you [@corbob](https://github.com/corbob)!_ * Fixed: Project folder discovery logic to ensure that project folders with the same name are added to the dictionary without conflict. * [Issue #22](#22) - _Thank you [@corbob](https://github.com/corbob)!_ * Added: `WithInsiders` switch parameter to `Open-Code`, `Edit-PSProfilePrompt`, and `Edit-PSProfileInitScript`. * [Issue #23](#23) * Fixed: `$PSProfile` variable should exist regardless of when you import the module (removed conditional variable setting from PSM1). * [Issue #26](#26) * Fixed: `$PSProfile._globalize()` internal method will now update `$PSDefaultParameterValue` to `$global":PSDefaultParameterValue` on InitScripts / ExternalScripts / etc so `$PSDefaultParameterValue` persists in the main session as intended. * [Issue #27](#27) * Removed: `Set-Prompt` alias to prevent conflict with `oh-my-posh` module. * [Issue #29](#29) * Fixed: Secrets now persist across refreshes and sessions as intended. Details: * Removed `PSProfileVault` class, replaced with pure hashtable. * Updated the Secrets management functions to work directly against the Vault hashtable. * [Issue #31](#31) * Fixed: Same as [Issue #29](#29).
- Loading branch information
Showing
11 changed files
with
186 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
# If we're in an interactive shell, load the profile. | ||
if ([Environment]::UserInteractive -or ($null -eq [Environment]::UserInteractive -and $null -eq ([Environment]::GetCommandLineArgs() | Where-Object { $_ -like '-NonI*' }))) { | ||
$global:OriginalPrompt = | ||
$global:PSProfile = [PSProfile]::new() | ||
$global:PSProfile.Load() | ||
Export-ModuleMember -Variable PSProfile | ||
$global:PSProfileConfigurationWatcher = [System.IO.FileSystemWatcher]::new($(Split-Path $global:PSProfile.Settings.ConfigurationPath -Parent),'Configuration.psd1') | ||
$job = Register-ObjectEvent -InputObject $global:PSProfileConfigurationWatcher -EventName Changed -Action { | ||
[PSProfile]$conf = Import-Configuration -Name PSProfile -CompanyName 'SCRT HQ' -Verbose:$false | ||
$conf._internal = $global:PSProfile._internal | ||
$global:PSProfile = $conf | ||
$global:PSProfile = [PSProfile]::new() | ||
$global:PSProfile.Load() | ||
Export-ModuleMember -Variable PSProfile | ||
$global:PSProfileConfigurationWatcher = [System.IO.FileSystemWatcher]::new($(Split-Path $global:PSProfile.Settings.ConfigurationPath -Parent),'Configuration.psd1') | ||
$job = Register-ObjectEvent -InputObject $global:PSProfileConfigurationWatcher -EventName Changed -Action { | ||
[PSProfile]$conf = Import-Configuration -Name PSProfile -CompanyName 'SCRT HQ' -Verbose:$false | ||
$conf._internal = $global:PSProfile._internal | ||
$global:PSProfile = $conf | ||
} | ||
$PSProfile_OnRemoveScript = { | ||
try { | ||
$global:PSProfileConfigurationWatcher.Dispose() | ||
} | ||
$PSProfile_OnRemoveScript = { | ||
try { | ||
$global:PSProfileConfigurationWatcher.Dispose() | ||
} | ||
finally { | ||
Remove-Variable PSProfile -Scope Global -Force | ||
Remove-Variable PSProfileConfigurationWatcher -Scope Global -Force | ||
} | ||
finally { | ||
Remove-Variable PSProfile -Scope Global -Force | ||
Remove-Variable PSProfileConfigurationWatcher -Scope Global -Force | ||
} | ||
$ExecutionContext.SessionState.Module.OnRemove += $PSProfile_OnRemoveScript | ||
Register-EngineEvent -SourceIdentifier ([System.Management.Automation.PsEngineEvent]::Exiting) -Action $PSProfile_OnRemoveScript | ||
} | ||
$ExecutionContext.SessionState.Module.OnRemove += $PSProfile_OnRemoveScript | ||
Register-EngineEvent -SourceIdentifier ([System.Management.Automation.PsEngineEvent]::Exiting) -Action $PSProfile_OnRemoveScript |
Oops, something went wrong.