Skip to content

Commit ebe55c1

Browse files
authored
fix: nit on default safeExec (#319)
Signed-off-by: Chapman Pendery <cpendery@vt.edu>
1 parent 82fa293 commit ebe55c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/shell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ const getProfilePath = async (shell: Shell): Promise<string | undefined> => {
110110
case Shell.Powershell:
111111
return (await safeExec(`echo $profile`, { shell })).stdout?.trim();
112112
case Shell.Pwsh:
113-
return (await safeExec(`echo $profile`, { shell, timeout: 500, env: { ISTERM: "1" } })).stdout?.trim();
113+
return (await safeExec(`echo $profile`, { shell })).stdout?.trim();
114114
case Shell.Zsh:
115115
return path.join(os.homedir(), ".zshrc");
116116
case Shell.Fish:
117117
return path.join(os.homedir(), ".config", "fish", "config.fish");
118118
case Shell.Xonsh:
119119
return path.join(os.homedir(), ".xonshrc");
120120
case Shell.Nushell:
121-
return (await safeExec(`echo $nu.env-path`, { shell, timeout: 500, env: { ISTERM: "1" } })).stdout?.trim();
121+
return (await safeExec(`echo $nu.env-path`, { shell })).stdout?.trim();
122122
}
123123
};
124124

0 commit comments

Comments
 (0)