starship: enable transience

This commit is contained in:
ooks-io 2025-01-28 19:58:55 +11:00
parent 8e84af98ac
commit 9dd3ff1f8f

View file

@ -5,10 +5,13 @@
}: let }: let
cfg = osConfig.ooknet.console.tools.starship; cfg = osConfig.ooknet.console.tools.starship;
inherit (lib) concatStrings mkIf; inherit (lib) concatStrings mkIf;
inherit (osConfig.ooknet.host) admin;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.starship = { programs.starship = {
enable = true; enable = true;
enableTransience = admin.shell == "fish";
enableInteractive = false;
settings = { settings = {
format = concatStrings [ format = concatStrings [
"$username" "$username"
@ -27,6 +30,14 @@ in {
directory = { directory = {
truncation_length = 0; truncation_length = 0;
truncate_to_repo = true; truncate_to_repo = true;
substitutions = {
"Documents" = " Documents";
"Downloads" = " Downloads";
"Music" = " Music";
"Pictures" = " Picures";
"Screenshots" = "󰹑 Screenshots";
"Summit" = " ";
};
}; };
fill = { fill = {