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