@@ -1,5 +1,11 @@
|
|||||||
{
|
{
|
||||||
programs.jujutsu = {
|
programs.jujutsu = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
user = {
|
||||||
|
name = "Christoph Schmatzler";
|
||||||
|
email = "christoph@schmatzler.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
add_newline = true;
|
add_newline = true;
|
||||||
command_timeout = 200;
|
command_timeout = 200;
|
||||||
format = "[$directory$git_branch]($style)$character";
|
format = "[$directory$\{custom.jj}]($style)$character";
|
||||||
character = {
|
character = {
|
||||||
error_symbol = "[✗ ](bold #e64553)";
|
error_symbol = "[✗ ](bold #e64553)";
|
||||||
success_symbol = "[❯](bold #40a02b)[❯](bold #df8e1d)[❯](bold #dc8a78)";
|
success_symbol = "[❯](bold #40a02b)[❯](bold #df8e1d)[❯](bold #dc8a78)";
|
||||||
@@ -16,9 +16,29 @@
|
|||||||
repo_root_style = "bold cyan";
|
repo_root_style = "bold cyan";
|
||||||
repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ";
|
repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ";
|
||||||
};
|
};
|
||||||
git_branch = {
|
custom.jj = {
|
||||||
format = "[$branch]($style) ";
|
command = ''
|
||||||
style = "bold";
|
jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '
|
||||||
|
separate(" ",
|
||||||
|
change_id.shortest(4),
|
||||||
|
bookmarks,
|
||||||
|
"|",
|
||||||
|
concat(
|
||||||
|
if(conflict, "💥"),
|
||||||
|
if(divergent, "🚧"),
|
||||||
|
if(hidden, "👻"),
|
||||||
|
if(immutable, "🔒"),
|
||||||
|
),
|
||||||
|
raw_escape_sequence("\x1b[1;32m") ++ if(empty, "(empty)"),
|
||||||
|
raw_escape_sequence("\x1b[1;32m") ++ coalesce(
|
||||||
|
truncate_end(29, description.first_line(), "…"),
|
||||||
|
"(no description set)",
|
||||||
|
) ++ raw_escape_sequence("\x1b[0m"),
|
||||||
|
)
|
||||||
|
'
|
||||||
|
'';
|
||||||
|
when = "jj --ignore-working-copy root";
|
||||||
|
symbol = "🥋";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,23 +2,24 @@
|
|||||||
with pkgs; [
|
with pkgs; [
|
||||||
(callPackage ./bin/open-project.nix {})
|
(callPackage ./bin/open-project.nix {})
|
||||||
age
|
age
|
||||||
devenv
|
|
||||||
lsof
|
|
||||||
alejandra
|
alejandra
|
||||||
delta
|
delta
|
||||||
|
devenv
|
||||||
docker
|
docker
|
||||||
docker-compose
|
docker-compose
|
||||||
fastfetch
|
fastfetch
|
||||||
fd
|
fd
|
||||||
|
fira-code
|
||||||
gh
|
gh
|
||||||
git
|
git
|
||||||
gnumake
|
gnumake
|
||||||
gnupg
|
gnupg
|
||||||
htop
|
htop
|
||||||
hyperfine
|
hyperfine
|
||||||
fira-code
|
jjui
|
||||||
jq
|
jq
|
||||||
killall
|
killall
|
||||||
|
lsof
|
||||||
nurl
|
nurl
|
||||||
openssh
|
openssh
|
||||||
postgresql_17
|
postgresql_17
|
||||||
|
|||||||
Reference in New Issue
Block a user