vivid: add nushell integration
This commit is contained in:
parent
42c607ecb4
commit
afaa85cf32
1 changed files with 8 additions and 0 deletions
|
|
@ -17,8 +17,11 @@ let
|
|||
mkBashIntegrationOption
|
||||
mkZshIntegrationOption
|
||||
mkFishIntegrationOption
|
||||
mkNushellIntegrationOption
|
||||
;
|
||||
|
||||
inherit (lib.hm.nushell) mkNushellInline;
|
||||
|
||||
cfg = config.programs.vivid;
|
||||
yamlFormat = pkgs.formats.yaml { };
|
||||
in
|
||||
|
|
@ -35,6 +38,7 @@ in
|
|||
enableBashIntegration = mkBashIntegrationOption { inherit config; };
|
||||
enableZshIntegration = mkZshIntegrationOption { inherit config; };
|
||||
enableFishIntegration = mkFishIntegrationOption { inherit config; };
|
||||
enableNushellIntegration = mkNushellIntegrationOption { inherit config; };
|
||||
|
||||
colorMode = mkOption {
|
||||
type =
|
||||
|
|
@ -160,5 +164,9 @@ in
|
|||
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
|
||||
set -gx LS_COLORS "$(${vividCommand})"
|
||||
'';
|
||||
|
||||
programs.nushell.environmentVariables = mkIf cfg.enableNushellIntegration {
|
||||
LS_COLORS = mkNushellInline vividCommand;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue