Compare commits

..

No commits in common. "fb26c31776b8e783362fdbb73afff8d6c7664d40" and "a4f1a9b4f570fedc96b5eeed98a8afe48377a27e" have entirely different histories.

2 changed files with 6 additions and 26 deletions

View File

@ -9,11 +9,13 @@ export def "git bug init" [] {
}
export def "git bug pull" [] {
^git fetch origin refs/bugs/*:refs/bugs/* refs/identities/*:refs/identities/*
^git fetch origin refs/bugs/*:refs/bugs/*
^git fetch origin refs/identities/*:refs/identities/*
}
export def "git bug push" [] {
^git push origin refs/bugs/*:refs/bugs/* refs/identities/*:refs/identities/*
^git push origin refs/bugs/*:refs/bugs/*
^git push origin refs/identities/*:refs/identities/*
}
def "bug-id" [] {

View File

@ -1,7 +1,7 @@
{ pkgs, ... }:
let
unicode = x: builtins.fromJSON ''"${x}"'';
jjScript = pkgs.writeShellApplication {
script = pkgs.writeShellApplication {
name = "jj-prompt";
runtimeInputs = [ pkgs.jujutsu ];
text =
@ -40,16 +40,6 @@ let
'
'';
};
gitBugScript = pkgs.writeShellApplication {
name = "git-bug-prompt";
runtimeInputs = [
pkgs.git-bug
pkgs.jq
];
text = ''
git-bug bug --format json status:open | jq 'length'
'';
};
in
{
programs.oh-my-posh = {
@ -120,23 +110,12 @@ in
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";
}
{
background = "p:blue";
background_templates = [ "{{ if gt .Code 0 }}p:red{{ end }}" ];
@ -163,7 +142,6 @@ in
lavender = "#B4BEFE";
orange = "#FAB387";
red = "#F38BA8";
maroon = "#EBA0AC";
white = "#CDD6F4";
yellow = "#F9E2AF";
};