fix colours in 'less'
This commit is contained in:
parent
3a932e1184
commit
bf6e29669e
1 changed files with 8 additions and 2 deletions
|
@ -1,11 +1,17 @@
|
||||||
{
|
{config, ...}: {
|
||||||
# enable zsh autocompletion for system packages (systemd, etc)
|
# enable zsh autocompletion for system packages (systemd, etc)
|
||||||
environment.pathsToLink = ["/share/zsh"];
|
environment.pathsToLink = ["/share/zsh"];
|
||||||
|
|
||||||
|
environment.variables."LESS" = config.programs.less.envVariables.LESS;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
less = {
|
less = {
|
||||||
enable = true;
|
enable = true;
|
||||||
envVariables.LESS = "--mouse";
|
envVariables.LESS = builtins.concatStringsSep " " [
|
||||||
|
"--mouse"
|
||||||
|
"--RAW-CONTROL-CHARS"
|
||||||
|
"--use-color"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
zsh = {
|
zsh = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue