mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:50:44 +08:00
less: enable options to be specified multiple times
This commit is contained in:
committed by
Austin Horstman
parent
4767a9c719
commit
07d79726f1
@@ -12,7 +12,10 @@ in
|
||||
options = {
|
||||
RAW-CONTROL-CHARS = true;
|
||||
quiet = true;
|
||||
wheel-lines = 3;
|
||||
wheel-lines = [
|
||||
3
|
||||
1
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -20,7 +23,7 @@ in
|
||||
assertFileExists home-files/.config/lesskey
|
||||
assertFileContent home-files/.config/lesskey ${builtins.toFile "less.expected" ''
|
||||
#env
|
||||
LESS = --RAW-CONTROL-CHARS --quiet --wheel-lines 3
|
||||
LESS = --RAW-CONTROL-CHARS --quiet --wheel-lines 3 --wheel-lines 1
|
||||
|
||||
${config}''}
|
||||
'';
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
options = {
|
||||
RAW-CONTROL-CHARS = true;
|
||||
quiet = true;
|
||||
wheel-lines = 3;
|
||||
wheel-lines = [
|
||||
3
|
||||
1
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -12,7 +15,7 @@
|
||||
assertFileExists home-files/.config/lesskey
|
||||
assertFileContent home-files/.config/lesskey ${builtins.toFile "lesskey.expected" ''
|
||||
#env
|
||||
LESS = --RAW-CONTROL-CHARS --quiet --wheel-lines 3
|
||||
LESS = --RAW-CONTROL-CHARS --quiet --wheel-lines 3 --wheel-lines 1
|
||||
''}
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user