diff --git a/src/helpers/shell-history.ts b/src/helpers/shell-history.ts index b72c7326..a61253d6 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();