File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import asyncio
22import os
33import sys
4+ from pathlib import Path
45
56from prompt_toolkit import PromptSession
67from prompt_toolkit .application import create_app_session_from_tty
78from prompt_toolkit .history import FileHistory
89
9- from .config import data_home
1010from .provider import get_provider
1111
1212from .config import config
1313
1414
1515async def prompt_user (default_prompt : str | None = None ) -> str :
1616 with create_app_session_from_tty ():
17- prompt_session = PromptSession (history = FileHistory (data_home / ".shelloracle_history" ))
17+ history_file = Path .home () / ".shelloracle_history"
18+ prompt_session = PromptSession (history = FileHistory (str (history_file )))
1819 # Can I do this with one of the builtin methods?
1920 # I tried a few (including cursor_down) with limited success
2021 prompt_session .output .write_raw ("\033 [E" )
You can’t perform that action at this time.
0 commit comments