From 80516e0e018450b62862b5d87185fb5750928d9c Mon Sep 17 00:00:00 2001 From: Scott Schlesier Date: Sat, 3 May 2025 23:06:34 -0700 Subject: [PATCH] respect $HISTFILE --- src/helpers/shell-history.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/helpers/shell-history.ts b/src/helpers/shell-history.ts index b72c732..a61253d 100644 --- a/src/helpers/shell-history.ts +++ b/src/helpers/shell-history.ts @@ -4,6 +4,10 @@ import path from 'path'; // Function to get the history file based on the shell function getHistoryFile(): string | null { + if (process.env.HISTFILE) { + return process.env.HISTFILE; + } + const shell = process.env.SHELL || ''; const homeDir = os.homedir();