diff options
| author | Louis Jimenez <[email protected]> | 2025-06-19 23:53:24 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-19 23:53:24 -0400 |
| commit | ea63a8401e6558bdd67d556812ed065b4bb07e9e (patch) | |
| tree | 851b13a591e2af568344b52cd0bf523ede93a10d /packages/cli/src/ui/hooks/useShellHistory.ts | |
| parent | 7a419282c82ca950f189ca778b6758337d1e7857 (diff) | |
Move the shell history our of the project .gemini to the home dir (#1195)
Diffstat (limited to 'packages/cli/src/ui/hooks/useShellHistory.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/useShellHistory.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/cli/src/ui/hooks/useShellHistory.ts b/packages/cli/src/ui/hooks/useShellHistory.ts index 0b1c8d98..507a18de 100644 --- a/packages/cli/src/ui/hooks/useShellHistory.ts +++ b/packages/cli/src/ui/hooks/useShellHistory.ts @@ -7,14 +7,13 @@ import { useState, useEffect, useCallback } from 'react'; import * as fs from 'fs/promises'; import * as path from 'path'; -import { isNodeError } from '@gemini-cli/core'; +import { isNodeError, getProjectTempDir } from '@gemini-cli/core'; -const HISTORY_DIR = '.gemini'; const HISTORY_FILE = 'shell_history'; const MAX_HISTORY_LENGTH = 100; async function getHistoryFilePath(projectRoot: string): Promise<string> { - const historyDir = path.join(projectRoot, HISTORY_DIR); + const historyDir = getProjectTempDir(projectRoot); return path.join(historyDir, HISTORY_FILE); } |
