From cdb87addd13be1b61a1391f363a66a84474d4939 Mon Sep 17 00:00:00 2001 From: iff Date: Wed, 9 Apr 2025 23:07:15 +0200 Subject: [PATCH] fix: redundant block in pwsh init --- core/templates/init.ps1 | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/templates/init.ps1 b/core/templates/init.ps1 index 8ce0e9a..077bcb9 100644 --- a/core/templates/init.ps1 +++ b/core/templates/init.ps1 @@ -9,9 +9,6 @@ function {{ alias }} { $env:_PR_ERROR_MSG = $err.Exception.Message } } - if ($env:_PR_LAST_COMMAND -eq $err.InvocationInfo.Line) { - $env:_PR_ERROR_MSG = $err.Exception.Message - } } $env:_PR_SHELL = 'pwsh'; &'{{ binary_path }}';