Move less history to XDG data dir

This commit is contained in:
Oystein Kristoffer Tveit 2022-08-19 12:54:32 +02:00
parent 594b3f986d
commit 47794d1ea4
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 13 additions and 0 deletions

View File

@ -15,6 +15,7 @@ in {
./programs/gh.nix
./programs/git.nix
./programs/gpg.nix
./programs/less.nix
./programs/neovim.nix
./programs/newsboat.nix
./programs/tmux.nix

12
home/programs/less.nix Normal file
View File

@ -0,0 +1,12 @@
{ config, ... }:
{
programs.less = {
enable = true;
keys = ''
#env
LESS = -i -R
LESSHISTSIZE=20000
LESSHISTFILE=${config.xdg.dataHome}/less/history
'';
};
}