summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-11-16 16:27:12 -0500
committerBen Sima <ben@bsima.me>2020-11-16 16:27:12 -0500
commit3b65d940f1aae9d6b282039d9bfa15c337831124 (patch)
tree6718c6bd0bae3269462305fd39194814fd77ed57
parent2820e88c4d86d4d9d3f0c8c28e69e643ad4eacc9 (diff)
use bat as pager
-rw-r--r--lib/common.nix4
-rw-r--r--lib/packages.nix1
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/common.nix b/lib/common.nix
index a24de04..822cf40 100644
--- a/lib/common.nix
+++ b/lib/common.nix
@@ -10,11 +10,11 @@ in
packages = import ./packages.nix { inherit pkgs; };
sessionVariables = {
GPGID = gpgid;
- EDITOR = "vim";
+ EDITOR = "${pkgs.vim}/bin/vim";
LANG = locale;
LANGUAGE = locale;
PATH = "${homedir}/bin:${homedir}/.local/bin:$PATH";
- PAGER = "vimpager";
+ PAGER = "${pkgs.bat}/bin/bat";
LEDGER_FILE = "${homedir}/.hledger.journal";
XTERM_LOCALE = locale;
PYTHONSTARTUP = "${homedir}/.pythonrc";
diff --git a/lib/packages.nix b/lib/packages.nix
index bcd6d55..2fbd246 100644
--- a/lib/packages.nix
+++ b/lib/packages.nix
@@ -22,6 +22,7 @@ let
in [
ag
aspellDicts.en
+bat
cabal2nix
cloc
ctags