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

@@ -22,20 +22,19 @@ in
forward_env = [ "PATH" ];
};
};
# https://github.com/starship/starship/discussions/7260
# programs.starship = {
# settings = {
# custom.shpool = {
# description = "Display current shpool session name";
# when = ''test -n "$SHPOOL_SESSION_NAME"'';
# command = "echo $SHPOOL_SESSION_NAME";
# symbol = " ";
# style = "fg:#dea584";
# format = "[$symbol $output]($style)";
# };
# };
# };
programs.starship = {
settings = {
custom.shpool = {
description = "Display current shpool session name";
when = ''test -n "$SHPOOL_SESSION_NAME"'';
command = "echo $SHPOOL_SESSION_NAME";
symbol = " ";
style = "fg:#dea584";
format = "[$symbol \\[$output\\] ]($style)";
};
};
};
};
# my.cli.shell.starship.format = [ "$starship$character" ];
my.cli.shell.starship.format = [ "\${custom.shpool}" "$character" ];
};
}