1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

fish: move type declarations to top of mkOptions

A closer match to the style of the definitions in the bash program.
This commit is contained in:
Ryan Orendorff 2019-09-22 23:53:08 -07:00 committed by Robert Helgesson
parent c22f3e1d29
commit 2eb1cb077d
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -51,62 +51,62 @@ in
enable = mkEnableOption "fish friendly interactive shell";
package = mkOption {
type = types.package;
default = pkgs.fish;
defaultText = literalExample "pkgs.fish";
description = ''
The fish package to install. May be used to change the version.
'';
type = types.package;
};
shellAliases = mkOption {
type = types.attrs;
default = {};
description = ''
Set of aliases for fish shell. See
<option>environment.shellAliases</option> for an option
format description.
'';
type = types.attrs;
};
shellAbbrs = mkOption {
type = types.attrs;
default = {};
description = ''
Set of abbreviations for fish shell.
'';
type = types.attrs;
};
shellInit = mkOption {
type = types.lines;
default = "";
description = ''
Shell script code called during fish shell initialisation.
'';
type = types.lines;
};
loginShellInit = mkOption {
type = types.lines;
default = "";
description = ''
Shell script code called during fish login shell initialisation.
'';
type = types.lines;
};
interactiveShellInit = mkOption {
type = types.lines;
default = "";
description = ''
Shell script code called during interactive fish shell initialisation.
'';
type = types.lines;
};
promptInit = mkOption {
type = types.lines;
default = "";
description = ''
Shell script code used to initialise fish prompt.
'';
type = types.lines;
};
};