Skip to content

Commit

Permalink
fix: nit on default safeExec (#319)
Browse files Browse the repository at this point in the history
Signed-off-by: Chapman Pendery <[email protected]>
  • Loading branch information
cpendery authored Jan 3, 2025
1 parent 82fa293 commit ebe55c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ const getProfilePath = async (shell: Shell): Promise<string | undefined> => {
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:
return path.join(os.homedir(), ".config", "fish", "config.fish");
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();
}
};

Expand Down

0 comments on commit ebe55c1

Please sign in to comment.