about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--saneterm/history.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/saneterm/history.py b/saneterm/history.py
index 8e54bd0..038a4f9 100644
--- a/saneterm/history.py
+++ b/saneterm/history.py
@@ -19,7 +19,8 @@ class History():
     """
 
     def __init__(self):
-        # XXX: Maybe consult os.environ["HISTFILE"]
+        # See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
+        # Explicitly not using HISTFILE to avoid overwriting the shell's history.
         if "XDG_DATA_DIR" in os.environ:
             data_dir = os.environ["XDG_DATA_DIR"]
         else: