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();