mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 21:29:48 +01:00
fish: implement shellInitLast (after others)
Since the module system doesn't allow specifying order on types.lines users can't specify anything to run after what modules have put into shellInitInteractive since it runs last. This implements a fourth field that runs after all others, not to be used by HM modules, but regular users. Co-authored-by: Carl Hjerpe <git@hjerpe.xyz>
This commit is contained in:
parent
cbce6c8e12
commit
c103ab9566
1 changed files with 11 additions and 0 deletions
|
@ -314,6 +314,15 @@ in {
|
||||||
initialisation.
|
initialisation.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
shellInitLast = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Shell script code called during interactive fish shell
|
||||||
|
initialisation, this will be the last thing executed in fish startup.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.fish.plugins = mkOption {
|
programs.fish.plugins = mkOption {
|
||||||
|
@ -469,6 +478,8 @@ in {
|
||||||
${cfg.interactiveShellInit}
|
${cfg.interactiveShellInit}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
${cfg.shellInitLast}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue