feat(starship): tmux & shpool indicator

This commit is contained in:
2026-02-07 12:09:57 +08:00
parent 42fbf5cee6
commit 2d324de58a
3 changed files with 39 additions and 32 deletions

View File

@@ -34,20 +34,19 @@ in
})
];
};
# https://github.com/starship/starship/discussions/7260
# programs.starship = {
# settings = {
# custom.tmux = {
# description = "Display current tmux session name";
# when = ''test -n "$TMUX"'';
# command = "tmux display-message -p '#S'";
# symbol = " ";
# style = "bold green";
# format = "[$symbol $output]($style)";
# };
# };
# };
programs.starship = {
settings = {
custom.tmux = {
description = "Display current tmux session name";
when = ''test -n "$TMUX"'';
command = "tmux display-message -p '#S'";
symbol = " ";
style = "bold green";
format = "[$symbol \\[$output\\] ]($style)";
};
};
};
};
# my.cli.shell.starship.format = [ "$tmux$character" ];
my.cli.shell.starship.format = [ "\${custom.tmux}" "$character" ];
};
}