Skip to content

Commit

Permalink
Change default Scope target in auto-completer
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanGreve committed Jun 1, 2023
1 parent e7f82eb commit 9cc7380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ function Get-ExecutionTime {
$EnvironmentVariableKeyCompleter = {
param($Command, $Parameter, $WordToComplete, $CommandAst, $FakeBoundParameters)

$Scope = $FakeBoundParameters.ContainsKey("Scope") ? $FakeBoundParameters.Scope : [EnvironmentVariableTarget]::User
$Scope = $FakeBoundParameters.ContainsKey("Scope") ? $FakeBoundParameters.Scope : [EnvironmentVariableTarget]::Process
[Environment]::GetEnvironmentVariables($Scope).Keys | ForEach-Object { [CompletionResult]::new($_) }
}

Expand Down

0 comments on commit 9cc7380

Please sign in to comment.