diff --git a/apps/nogui/oh-my-posh.nix b/apps/nogui/oh-my-posh.nix index 4e017c46ecead94b0a9b9d10cdb78c52d0d600f4..9d280c35e46dcb3686932b87d284e58fa410999e 100644 --- a/apps/nogui/oh-my-posh.nix +++ b/apps/nogui/oh-my-posh.nix @@ -1,7 +1,7 @@ { pkgs, ... }: let unicode = x: builtins.fromJSON ''"${x}"''; - jjScript = pkgs.writeShellApplication { + script = pkgs.writeShellApplication { name = "jj-prompt"; runtimeInputs = [ pkgs.jujutsu ]; text = @@ -39,16 +39,6 @@ if(hidden, "(hidden)"), ) ' ''; - }; - gitBugScript = pkgs.writeShellApplication { - name = "git-bug-prompt"; - runtimeInputs = [ - pkgs.git-bug - pkgs.jq - ]; - text = '' - git-bug bug --format json status:open | jq 'length' - ''; }; in { @@ -120,21 +110,10 @@ background = "p:green"; foreground = "p:black"; powerline_symbol = unicode "\\ue0b0"; properties = { - script = "${jjScript}/bin/jj-prompt"; + script = "${script}/bin/jj-prompt"; }; style = "powerline"; template = "{{ if (glob \".jj\")}} {{ .Output }} {{ end }}"; - type = "command"; - } - { - background = "p:maroon"; - foreground = "p:black"; - powerline_symbol = unicode "\\ue0b0"; - properties = { - script = "${gitBugScript}/bin/git-bug-prompt"; - }; - style = "powerline"; - template = "{{ if (glob \".git/refs/bugs\")}} 󰃤 {{ .Output }} {{ end }}"; type = "command"; } { @@ -163,7 +142,6 @@ green = "#A6E3A1"; lavender = "#B4BEFE"; orange = "#FAB387"; red = "#F38BA8"; - maroon = "#EBA0AC"; white = "#CDD6F4"; yellow = "#F9E2AF"; };