mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
No need to wrap bat anymore
This commit is contained in:
parent
3951f0e6a6
commit
a489a8e604
1 changed files with 4 additions and 8 deletions
|
@ -1,18 +1,14 @@
|
|||
{ config, lib, pkgs, ... }: with lib; merge
|
||||
|
||||
(let
|
||||
batPlain = pkgs.writeScript "bat-plain" ''
|
||||
bat --plain $@
|
||||
'';
|
||||
in systemConfiguration {
|
||||
(systemConfiguration {
|
||||
environment.variables = {
|
||||
MANPAGER = toString batPlain;
|
||||
PAGER = toString batPlain;
|
||||
MANPAGER = "bat --plain";
|
||||
PAGER = "bat --plain";
|
||||
};
|
||||
|
||||
environment.shellAliases = {
|
||||
cat = "bat";
|
||||
less = toString batPlain;
|
||||
less = "bat --plain";
|
||||
};
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue