starship: enable transience
This commit is contained in:
parent
8e84af98ac
commit
9dd3ff1f8f
1 changed files with 11 additions and 0 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue