Skip to content

Commit

Permalink
users: jj change id starship
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Dec 25, 2024
1 parent 33ea548 commit 3228e90
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion modules/shared/home-manager/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
settings = {
command_timeout = 3000;
format = "$hostname$username$nix_shell$character";
right_format = "$directory$git_branch$git_state$git_commit$git_status";
right_format = "$directory\${custom.jjid}$git_state$git_commit$git_status";

character = {
success_symbol = "[ ♥ ](fg:black bg:cyan)";
Expand Down Expand Up @@ -124,6 +124,17 @@
style = "fg:black bg:yellow";
format = "[ $name ]($style)";
};

custom = {
jjid = {
ignore_timeout = true;
description = "current jj status";
when = "jj root";
command = "jj log -r@ --no-graph --ignore-working-copy --color never --limit 1 -T 'change_id.shortest(4)'";
style = "fg:black bg:green";
format = "[ $output ]($style)";
};
};
};
};

Expand Down

0 comments on commit 3228e90

Please sign in to comment.