home: add jj config and add jj to home path
This commit is contained in:
parent
119954200e
commit
e758c5f215
|
@ -30,7 +30,6 @@
|
|||
pciutils
|
||||
usbutils
|
||||
# development
|
||||
jujutsu
|
||||
git
|
||||
git-crypt
|
||||
git-lfs
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
./flameshot.nix
|
||||
./git.nix
|
||||
./gtk.nix
|
||||
./jj.nix
|
||||
./laptop.nix
|
||||
./mail.nix
|
||||
./rbw.nix
|
||||
|
|
8
home/jj.nix
Normal file
8
home/jj.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = [
|
||||
pkgs.jujutsu
|
||||
];
|
||||
xdg.configFile = {
|
||||
"jj/config.toml".source = ./jj/config.toml;
|
||||
};
|
||||
}
|
71
home/jj/config.toml
Normal file
71
home/jj/config.toml
Normal file
|
@ -0,0 +1,71 @@
|
|||
[user]
|
||||
name = "Antoine Martin"
|
||||
email = "antoine@alarsyo.net"
|
||||
|
||||
[ui]
|
||||
diff-editor = ":builtin"
|
||||
paginate = "auto"
|
||||
editor = "vim"
|
||||
pager = "less -FRX"
|
||||
default-command = "log"
|
||||
|
||||
[ui.movement]
|
||||
edit = false
|
||||
|
||||
[git]
|
||||
subprocess = true
|
||||
|
||||
[snapshot]
|
||||
auto-track = "none()"
|
||||
|
||||
[aliases]
|
||||
pdiff = ["diff", "-r", "@-"]
|
||||
tug = ["bookmark", "move", "--from", "closest_bookmark(@-)", "--to", "@-"]
|
||||
ll = ["log", "-T", "builtin_log_detailed"]
|
||||
l = ["log", "-T", "builtin_log_compact"]
|
||||
|
||||
[revset-aliases]
|
||||
'closest_bookmark(to)' = 'heads(::to & bookmarks())'
|
||||
|
||||
[templates]
|
||||
log = "builtin_log_comfortable"
|
||||
|
||||
log_node = '''
|
||||
coalesce(
|
||||
if(!self, label("elided", "~")),
|
||||
label(
|
||||
separate(" ",
|
||||
if(current_working_copy, "working_copy"),
|
||||
if(immutable, "immutable"),
|
||||
if(conflict, "conflict"),
|
||||
if(description.starts_with("wip:"), "wip"),
|
||||
if(description.starts_with("private:"), "private"),
|
||||
),
|
||||
coalesce(
|
||||
if(current_working_copy, "@"),
|
||||
if(immutable, "◆"),
|
||||
if(conflict, "×"),
|
||||
if(description.starts_with("wip:"), "🔒"),
|
||||
if(description.starts_with("private:"), "🔒"),
|
||||
"○",
|
||||
)
|
||||
)
|
||||
)
|
||||
'''
|
||||
|
||||
[template-aliases]
|
||||
|
||||
[[--scope]]
|
||||
--when.repositories = ["~/work/lrde/"]
|
||||
[--scope.user]
|
||||
email = "amartin@lrde.epita.fr"
|
||||
|
||||
[[--scope]]
|
||||
--when.repositories = ["~/work/prologin/"]
|
||||
[--scope.user]
|
||||
email = "antoine.martin@prologin.org"
|
||||
|
||||
[[--scope]]
|
||||
--when.repositories = ["~/work/epita/"]
|
||||
[--scope.user]
|
||||
email = "antoine4.martin@epita.fr"
|
Loading…
Reference in a new issue