From 942d339b5cf2854ada0d717ea4ccdeab09689f30 Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Fri, 3 Jan 2025 13:12:24 -0500 Subject: [PATCH] fix: nit on default safeExec Signed-off-by: Chapman Pendery --- src/utils/shell.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/shell.ts b/src/utils/shell.ts index 12432d5..67edea0 100644 --- a/src/utils/shell.ts +++ b/src/utils/shell.ts @@ -110,7 +110,7 @@ const getProfilePath = async (shell: Shell): Promise => { case Shell.Powershell: return (await safeExec(`echo $profile`, { shell })).stdout?.trim(); case Shell.Pwsh: - return (await safeExec(`echo $profile`, { shell, timeout: 500, env: { ISTERM: "1" } })).stdout?.trim(); + return (await safeExec(`echo $profile`, { shell })).stdout?.trim(); case Shell.Zsh: return path.join(os.homedir(), ".zshrc"); case Shell.Fish: @@ -118,7 +118,7 @@ const getProfilePath = async (shell: Shell): Promise => { case Shell.Xonsh: return path.join(os.homedir(), ".xonshrc"); case Shell.Nushell: - return (await safeExec(`echo $nu.env-path`, { shell, timeout: 500, env: { ISTERM: "1" } })).stdout?.trim(); + return (await safeExec(`echo $nu.env-path`, { shell })).stdout?.trim(); } };