mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
config: command-line revamp
This commit is contained in:
parent
802a38f61b
commit
3f34891413
28 changed files with 1141 additions and 335 deletions
21
modules/common/bat.nix
Normal file
21
modules/common/bat.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, ... }: {
|
||||
environment.variables = {
|
||||
MANPAGER = "bat --plain";
|
||||
PAGER = "bat --plain";
|
||||
};
|
||||
|
||||
environment.shellAliases = {
|
||||
cat = "bat";
|
||||
less = "bat --plain";
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
theme = config.theme.batTheme;
|
||||
pager = "less --quit-if-one-screen --RAW-CONTROL-CHARS";
|
||||
};
|
||||
};
|
||||
}];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue