=Fixed auto loaded code

This commit is contained in:
Gal @home ha 2022-02-05 16:44:01 -05:00
parent 10b670269a
commit 9eb99e1581
2 changed files with 5 additions and 1 deletions

View File

@ -20,4 +20,7 @@ if( -not (
$env:SHELL_PARENT = $env:SHELL
}
$env:SHELL = Get-Process -Id $PID | Select-Object -ExpandProperty Path
Set-UnixCompleter -Shell $env:COMPLETION_SHELL_PREFERENCE
Get-Command -ListImported Set-UnixCompleter -ErrorAction Ignore |
ForEach-Object {
Set-UnixCompleter -Shell $env:COMPLETION_SHELL_PREFERENCE
}

View File

@ -37,6 +37,7 @@ class DockerNetworks {
}
}
if( -not (Get-Command docker-compose -ErrorAction Ignore) ) { return }
class DockerComposeCommands { #: System.Management.Automation.IValidateSetValuesGenerator {
static [string[]] $cachedCommands = @()
static [string[]] _GetValidValues([string]$wordToComplete,[string]$subcommand,[bool]$Strict) {