-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-412) Tab Completion Flow / Filtering / Perf
- Draw out the flow of tab completion so it feels natural, which includes the options most widely being used coming first in the option set. - Introduce naive filtering to not redisplay an already passwed option/switch. It doesn't quite work if it is a value you need to add data to but it's a start. - Skip using the choco shim and go directly to the choco.exe. - Tweak commands to produce the fastest execution
- Loading branch information
1 parent
b7e5ff9
commit 78ebc5c
Showing
2 changed files
with
97 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# ensure module loading preference is on | ||
$PSModuleAutoLoadingPreference = "All"; | ||
if (Get-Module chocolateyProfile) { return } | ||
|
||
$thisDirectory = (Split-Path -parent $MyInvocation.MyCommand.Definition) | ||
|
||
$thisDirectory = (Split-Path -parent $MyInvocation.MyCommand.Definition); | ||
. $thisDirectory\functions\Get-EnvironmentVariable.ps1 | ||
. $thisDirectory\functions\Get-EnvironmentVariableNames.ps1 | ||
. $thisDirectory\functions\Update-SessionEnvironment.ps1 | ||
. $thisDirectory\ChocolateyTabExpansion.ps1 | ||
|
||
Export-ModuleMember -Alias refreshenv -Function 'Update-SessionEnvironment', 'TabExpansion' |