HASH 9dd3ff1f8fcd
DATE 2025-01-28
SUBJECT starship: enable transience
FILES 1 CHANGED
HASH 9dd3ff1f8fcd
DATE 2025-01-28
SUBJECT starship: enable transience
FILES 1 CHANGED
┌─ modules/home/console/tools/starship.nix ──────────────────────────────────┐
│ diff --git a/modules/home/console/tools/starship.nix b/modules/home/console/tools/ │
│ starship.nix │
│ index 95cd762..fbefb51 100644 │
│ --- a/modules/home/console/tools/starship.nix │
│ +++ b/modules/home/console/tools/starship.nix │
│ @@ -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 = { │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...me/console/tools/starship.nix ───┐
│ diff --git a/modules/home/console/tools/star │
│ ship.nix b/modules/home/console/tools/starsh │
│ ip.nix │
│ index 95cd762..fbefb51 100644 │
│ --- a/modules/home/console/tools/starship.ni │
│ x │
│ +++ b/modules/home/console/tools/starship.ni │
│ x │
│ @@ -5,10 +5,13 @@ │
│ }: let │
│ cfg = osConfig.ooknet.console.tools.stars │
│ hip; │
│ inherit (lib) concatStrings mkIf; │
│ + inherit (osConfig.ooknet.host) admin; │
│ in { │
│ config = mkIf cfg.enable { │
│ programs.starship = { │
│ enable = true; │
│ + enableTransience = admin.shell == "fi │
│ sh"; │
│ + 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 = { │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET