aboutsummaryrefslogtreecommitdiffstats
path: root/less
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--less/Makefile12
-rw-r--r--less/user-profile3
2 files changed, 15 insertions, 0 deletions
diff --git a/less/Makefile b/less/Makefile
new file mode 100644
index 0000000..73b43c7
--- /dev/null
+++ b/less/Makefile
@@ -0,0 +1,12 @@
+.POSIX:
+
+install:
+ mkdir -p -- ~/.config/profile.d
+ test ! -d ~/.config/profile.d/less
+ ln -sf -- ~/.dotfiles/less/user-profile ~/.config/profile.d/less
+
+uninstall:
+ -unlink -- ~/.config/profile.d/less
+ -rmdir -- ~/.config/profile.d
+
+.PHONY: install uninstall
diff --git a/less/user-profile b/less/user-profile
new file mode 100644
index 0000000..469134d
--- /dev/null
+++ b/less/user-profile
@@ -0,0 +1,3 @@
+# -*- shell-script -*-
+
+export LESSHISTFILE=/dev/null