From 240c48661ea88ccae140679d6abf9dfe2279997c Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Sat, 4 Jun 2022 22:28:07 +0200 Subject: [PATCH] [home] Do not save `less` history. By default `less` remembers commands issued by the user. --- bash/.config/profile.d/20-less.sh | 6 ++++++ home.scm | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 bash/.config/profile.d/20-less.sh diff --git a/bash/.config/profile.d/20-less.sh b/bash/.config/profile.d/20-less.sh new file mode 100644 index 0000000..c82f904 --- /dev/null +++ b/bash/.config/profile.d/20-less.sh @@ -0,0 +1,6 @@ +# Copyright (c) 2022 Jakub Czajka +# License: GPL-3.0 or later. +# +# 20-less.sh - configuration for less(1). + +export LESSHISTFILE="-" diff --git a/home.scm b/home.scm index 5912410..39d7da8 100644 --- 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)) -- 2.39.5