From 43224c6a4c9bc7fc3b4b40d914feef4611f2a5a9 Mon Sep 17 00:00:00 2001 From: moni-dz Date: Wed, 25 Dec 2024 18:48:26 +0800 Subject: [PATCH] users: jj qol aliases --- modules/shared/home-manager/vcs.nix | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/modules/shared/home-manager/vcs.nix b/modules/shared/home-manager/vcs.nix index a66aaae..85191ab 100644 --- a/modules/shared/home-manager/vcs.nix +++ b/modules/shared/home-manager/vcs.nix @@ -43,12 +43,52 @@ jujutsu = { enable = config.programs.git.enable; settings = { + core.fsmonitor = "watchman"; + format.tree-level-conflicts = true; + + aliases = { + l = [ + "log" + "-r" + "reachable(@, mutable())" + ]; + + lm = [ + "log" + "-r" + "(master..@):: | (master..@)-" + ]; + + lmain = [ + "log" + "-r" + "(main..@):: | (main..@)-" + ]; + + mv = [ + "bookmark" + "set" + "--revision" + ]; + }; + user = { name = "moni-dz"; email = "lythe1107@gmail.com"; }; + git = { + fetch = [ + "upstream" + "origin" + ]; + + push = "origin"; + }; + ui = { + editor = "nvim"; + diff-editor = [ "nvim" "-c"