mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
kitty shell: Ignore failure to read readline history file
This commit is contained in:
@@ -84,8 +84,10 @@ class Completer:
|
|||||||
return self.matches[state]
|
return self.matches[state]
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
if os.path.exists(self.history_path):
|
try:
|
||||||
readline.read_history_file(self.history_path)
|
readline.read_history_file(self.history_path)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
readline.set_completer(self.complete)
|
readline.set_completer(self.complete)
|
||||||
delims = readline.get_completer_delims()
|
delims = readline.get_completer_delims()
|
||||||
readline.set_completer_delims(delims.replace('-', ''))
|
readline.set_completer_delims(delims.replace('-', ''))
|
||||||
|
|||||||
Reference in New Issue
Block a user