Skip to content

Commit dcd9b19

Browse files
author
James Brundage
committed
PipeScript Module: Handling CommandNotFound (Fixes #281)
1 parent 2e8b740 commit dcd9b19

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

PipeScript.ps1.psm1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,8 @@ Will not interactively transpile {$callingScriptBlock} ( because it would overwr
102102
}
103103

104104
return
105+
}
106+
107+
$MyInvocation.MyCommand.Module.OnRemove = {
108+
$global:ExecutionContext.SessionState.InvokeCommand.CommandNotFoundAction = $null
105109
}

0 commit comments

Comments
 (0)