Skip to content

Commit 8a5d086

Browse files
committed
starship: print nearest jujutsu bookmark in prompt
1 parent 3523873 commit 8a5d086

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modules/shell/starship.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@
3636
'';
3737
};
3838

39+
custom.jjb = {
40+
when = "jj root --ignore-working-copy";
41+
detect_folders = [ ".jj" ];
42+
ignore_timeout = true;
43+
format = "($output) ";
44+
command = ''
45+
jj log --no-graph -r "streams()" --template '
46+
surround("[", "]",
47+
bookmarks
48+
)
49+
'
50+
'';
51+
};
52+
3953
git_state = {
4054
disabled = true;
4155
};

0 commit comments

Comments
 (0)