mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
22 lines
491 B
Nix
22 lines
491 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.myConfig.shell.starship.enable = lib.mkEnableOption "";
|
|
|
|
config.programs.starship = lib.mkIf config.myConfig.shell.starship.enable {
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
|
|
settings = {
|
|
directory = {
|
|
truncation_length = 0;
|
|
truncation_symbol = "…/";
|
|
truncate_to_repo = true;
|
|
};
|
|
};
|
|
};
|
|
}
|