Skip to content

Commit e87aa74

Browse files
authored
Merge pull request #128 from Mrid22/starship
modules/zsh: added starship integration
2 parents 4165dfd + 90c9a08 commit e87aa74

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

modules/zsh/module.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ in
5555
default = config.pkgs.oh-my-posh;
5656
};
5757
};
58+
starship = {
59+
enable = lib.mkEnableOption "starship";
60+
package = lib.mkOption {
61+
type = lib.types.package;
62+
default = config.pkgs.starship; # Or self'.packages.starship, assuming you use flake parts
63+
};
64+
};
5865
zoxide = {
5966
enable = lib.mkEnableOption "zoxide";
6067
package = lib.mkOption {
@@ -65,7 +72,6 @@ in
6572
type = with lib.types; listOf str;
6673
default = [ ];
6774
};
68-
description = "adds fzf to zsh without integrating solely so that zoxide can use it for reverse searching, use this if you dont want to integrate fzf with your shell for history, but want it for zoxide";
6975
};
7076
};
7177

@@ -212,6 +218,7 @@ in
212218
(lib.optionalString ing.atuin.enable ''eval "$(atuin init zsh)"'')
213219
(lib.optionalString ing.oh-my-posh.enable ''eval "$(oh-my-posh init zsh)"'')
214220
(lib.optionalString ing.zoxide.enable ''eval "$(zoxide init zsh ${zoxide-flags})"'')
221+
(lib.optionalString ing.starship.enable ''eval $(starship init zsh)'')
215222

216223
"# History"
217224

@@ -242,6 +249,7 @@ in
242249
++ lib.optional ing.atuin.enable ing.atuin.package
243250
++ lib.optional ing.zoxide.enable ing.zoxide.package
244251
++ lib.optional ing.oh-my-posh.enable ing.oh-my-posh.package
252+
++ lib.optional ing.starship.enable ing.starship.package
245253
++ lib.optional cfg.completion.enable config.pkgs.nix-zsh-completions;
246254

247255
flags = {

0 commit comments

Comments
 (0)