Skip to content

Commit ee49ee2

Browse files
phucisstupidkhaneliman
authored andcommitted
yazi: change the default shellWrapperName yy y
Signed-off-by: Austin Horstman <[email protected]>
1 parent ff5e5d8 commit ee49ee2

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

modules/programs/yazi.nix

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,23 @@ in
4848

4949
shellWrapperName = lib.mkOption {
5050
type = types.str;
51-
default = "yy";
52-
example = "y";
51+
default =
52+
if lib.versionAtLeast config.home.stateVersion "26.05" then
53+
"y"
54+
else
55+
lib.warn ''
56+
The default value of `programs.yazi.shellWrapperName` has changed from `yy` to `y`.
57+
You are currently using the legacy default (`yy`) because `home.stateVersion` is less than "26.05".
58+
To silence this warning and keep legacy behavior, set:
59+
programs.yazi.shellWrapperName = "yy";
60+
To adopt the new default behavior, set:
61+
programs.yazi.shellWrapperName = "y";
62+
'' "yy";
63+
defaultText = literalExpression ''
64+
"y" for state version ≥ 26.05
65+
"yy" for state version < 26.05
66+
'';
67+
example = "yy";
5368
description = ''
5469
Name of the shell wrapper to be called.
5570
'';

0 commit comments

Comments
 (0)