From af06a4e3f03aa9303883a96e5a662d71b6f24a0b Mon Sep 17 00:00:00 2001 From: punkfairie Date: Tue, 29 Oct 2024 21:31:59 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(less):=20Configure=20less?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/default.nix | 1 + home/less/default.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 home/less/default.nix diff --git a/home/default.nix b/home/default.nix index c335156..7ba14fd 100644 --- a/home/default.nix +++ b/home/default.nix @@ -37,6 +37,7 @@ ./fish ./gh ./hyfetch + ./less ./man ./syncthing ./wget diff --git a/home/less/default.nix b/home/less/default.nix new file mode 100644 index 0000000..34203f1 --- /dev/null +++ b/home/less/default.nix @@ -0,0 +1,15 @@ +{ + lib, + config, + ... +}: { + programs.less.enable = true; + + programs.fish = lib.mkIf config.programs.fish.enable { + interactiveShellInit = '' + set -gx LESS -R + ''; + }; + + programs.lesspipe.enable = true; +}