feat: shpool
This commit is contained in:
41
modules/cli/shpool.nix
Normal file
41
modules/cli/shpool.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.cli.shpool;
|
||||
in
|
||||
{
|
||||
options.my.cli.shpool = {
|
||||
enable = lib.mkEnableOption "shpool";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.hm = {
|
||||
services.shpool = {
|
||||
enable = true;
|
||||
systemd = true;
|
||||
settings = {
|
||||
motd = "never";
|
||||
prompt_prefix = "";
|
||||
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)";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
# my.cli.shell.starship.format = [ "$starship$character" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user