mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Add hr prompt
This commit is contained in:
parent
181ad4416a
commit
e2297dc00c
1 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,12 @@ in {
|
||||||
options.mods.terminal.hr.enable = lib.mkEnableOption "Hefring (Work Tooling)";
|
options.mods.terminal.hr.enable = lib.mkEnableOption "Hefring (Work Tooling)";
|
||||||
|
|
||||||
config = lib.mkIf cfg.hr.enable {
|
config = lib.mkIf cfg.hr.enable {
|
||||||
|
programs.starship.settings.custom.project_id = {
|
||||||
|
command = "if echo \"$PROJECT_ID\" | grep -q \"prod\"; then printf \"\\033[1;33m \\033[1;34m$PROJECT_ID\\033[0m\"; else printf \"\\033[1;34m$PROJECT_ID\\033[0m\"; fi";
|
||||||
|
when = "test -n \"$PROJECT_ID\"";
|
||||||
|
format = "on $output ";
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh.initExtra = builtins.readFile ./hr.sh;
|
programs.zsh.initExtra = builtins.readFile ./hr.sh;
|
||||||
|
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue