mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +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
|
{ config, lib, pkgs, ... }: with lib; merge
|
||||||
|
|
||||||
(let
|
(systemConfiguration {
|
||||||
batPlain = pkgs.writeScript "bat-plain" ''
|
|
||||||
bat --plain $@
|
|
||||||
'';
|
|
||||||
in systemConfiguration {
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
MANPAGER = toString batPlain;
|
MANPAGER = "bat --plain";
|
||||||
PAGER = toString batPlain;
|
PAGER = "bat --plain";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
less = toString batPlain;
|
less = "bat --plain";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue