]> git.ekhem.eu.org Git - guix.git/commitdiff
[home] Do not save `less` history.
authorJakub Czajka <jakub@ekhem.eu.org>
Sat, 4 Jun 2022 20:28:07 +0000 (22:28 +0200)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:07 +0000 (19:53 +0100)
By default `less` remembers commands issued by the user.

bash/.config/profile.d/20-less.sh [new file with mode: 0644]
home.scm

diff --git a/bash/.config/profile.d/20-less.sh b/bash/.config/profile.d/20-less.sh
new file mode 100644 (file)
index 0000000..c82f904
--- /dev/null
@@ -0,0 +1,6 @@
+# Copyright (c) 2022 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+#
+# 20-less.sh - configuration for less(1).
+
+export LESSHISTFILE="-"
index 5912410bc1cf3306df8d17441e56d9669621ca2e..39d7da8f43576214a6c0b7773f514c09ca4304f6 100644 (file)
--- a/home.scm
+++ b/home.scm
@@ -20,7 +20,8 @@
                  (bash-profile "bash/.bash_profile")
                  (bashrc "bash/.bashrc")))
        (service home-symlink-service-type
-                (list "bash/.config/profile.d/10-xdg.sh"))
+                (list "bash/.config/profile.d/10-xdg.sh"
+                      "bash/.config/profile.d/20-less.sh"))
        (service home-program-service-type
                 (home-program-configuration
                  (packages (list git))