From 226c4a7cef27041923347235b0b031cc14fb24c8 Mon Sep 17 00:00:00 2001 From: Sören Tempel Date: Mon, 24 May 2021 02:48:13 +0200 Subject: history: Clarify HISTFILE comment --- saneterm/history.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit 1.4.1