Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions proxyclient/m1n1/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ def init_history(self, histfile):
readline.read_history_file(histfile)
except FileNotFoundError:
pass
except PermissionError as e:
print(f"Failed reading history from {histfile}: {e}", file=sys.stderr)
if sys.platform == "darwin":
print(f" On macOS this may be caused by extended attributes. "
f"Try: xattr -c {histfile}", file=sys.stderr)

def save_history(self):
readline.set_history_length(10000)
Expand Down