mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 18:37:50 +00:00
kitty shell: Ignore failure to read readline history file
This commit is contained in:
parent
c037f53534
commit
32f22e0ada
1 changed files with 3 additions and 1 deletions
|
|
@ -84,8 +84,10 @@ class Completer:
|
|||
return self.matches[state]
|
||||
|
||||
def __enter__(self):
|
||||
if os.path.exists(self.history_path):
|
||||
try:
|
||||
readline.read_history_file(self.history_path)
|
||||
except Exception:
|
||||
pass
|
||||
readline.set_completer(self.complete)
|
||||
delims = readline.get_completer_delims()
|
||||
readline.set_completer_delims(delims.replace('-', ''))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue