diff --git a/proxyclient/m1n1/shell.py b/proxyclient/m1n1/shell.py index 451a0c3aa..0969d1498 100644 --- a/proxyclient/m1n1/shell.py +++ b/proxyclient/m1n1/shell.py @@ -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)