]> git.ekhem.eu.org Git - guix.git/commitdiff
[bash] Keep history in `${XDG_DATA_HOME}/bash/history`.
authorJakub Czajka <jakub@ekhem.eu.org>
Thu, 22 Dec 2022 19:47:43 +0000 (20:47 +0100)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:07 +0000 (19:53 +0100)
bash/.config/profile.d/50-bash.sh [new file with mode: 0644]

diff --git a/bash/.config/profile.d/50-bash.sh b/bash/.config/profile.d/50-bash.sh
new file mode 100644 (file)
index 0000000..44ef5fb
--- /dev/null
@@ -0,0 +1,10 @@
+# Copyright (c) 2022 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+#
+# 50-bash.sh - bash environment variables.
+
+if [ ! -f ${XDG_DATA_HOME}/bash ]; then
+    mkdir -p ${XDG_DATA_HOME}/bash
+fi
+
+export HISTFILE="${XDG_DATA_HOME}/bash/history"