=Fixed auto loaded code
This commit is contained in:
parent
10b670269a
commit
9eb99e1581
|
@ -20,4 +20,7 @@ if( -not (
|
||||||
$env:SHELL_PARENT = $env:SHELL
|
$env:SHELL_PARENT = $env:SHELL
|
||||||
}
|
}
|
||||||
$env:SHELL = Get-Process -Id $PID | Select-Object -ExpandProperty Path
|
$env:SHELL = Get-Process -Id $PID | Select-Object -ExpandProperty Path
|
||||||
|
Get-Command -ListImported Set-UnixCompleter -ErrorAction Ignore |
|
||||||
|
ForEach-Object {
|
||||||
Set-UnixCompleter -Shell $env:COMPLETION_SHELL_PREFERENCE
|
Set-UnixCompleter -Shell $env:COMPLETION_SHELL_PREFERENCE
|
||||||
|
}
|
||||||
|
|
|
@ -37,6 +37,7 @@ class DockerNetworks {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( -not (Get-Command docker-compose -ErrorAction Ignore) ) { return }
|
||||||
class DockerComposeCommands { #: System.Management.Automation.IValidateSetValuesGenerator {
|
class DockerComposeCommands { #: System.Management.Automation.IValidateSetValuesGenerator {
|
||||||
static [string[]] $cachedCommands = @()
|
static [string[]] $cachedCommands = @()
|
||||||
static [string[]] _GetValidValues([string]$wordToComplete,[string]$subcommand,[bool]$Strict) {
|
static [string[]] _GetValidValues([string]$wordToComplete,[string]$subcommand,[bool]$Strict) {
|
||||||
|
|
Loading…
Reference in New Issue