From d64caa86ecd87064d28dfaa6e41d78f9826470e0 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 5 Jul 2025 00:02:39 +0200 Subject: [PATCH] feat(jujutsu): update my config with new aliases --- flake.nix | 12 +++++++----- users/modules/vcs/jujutsu.nix | 8 ++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 8d1cca7..af521d2 100644 --- a/flake.nix +++ b/flake.nix @@ -3,20 +3,22 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + + devenv = { + url = "github:cachix/devenv"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + nix-index-database = { url = "github:nix-community/nix-index-database"; inputs.nixpkgs.follows = "nixpkgs"; }; - devenv = { - url = "github:cachix/devenv"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - pumo-system-info = { url = "git+https://labs.phundrak.com/phundrak/pumo-system-info"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/users/modules/vcs/jujutsu.nix b/users/modules/vcs/jujutsu.nix index 487ab0c..66dd986 100644 --- a/users/modules/vcs/jujutsu.nix +++ b/users/modules/vcs/jujutsu.nix @@ -41,6 +41,7 @@ in { ui = { default-command = "st"; pager = ":builtin"; + show-cryptographic-signatures = true; inherit (cfg) editor; }; signing = mkIf cfg.signing.enable { @@ -50,6 +51,13 @@ in { backends."ssh.allowed-signers" = "~/.ssh/allowed_signers"; backends."ssh.program" = "${pkgs.openssh}/bin/ssh-keygen"; }; + aliases = { + l = ["log"]; + lc = ["log" "-r" "(remote_bookmarks()..@)::"]; + n = ["new"]; + dm = ["desc" "-m"]; + tug = ["bookmark" "move" "--from" "heads(::@- & bookmarks())" "--to" "@-"]; + }; }; }; }