From 62246715bbfd985c3541b27657475aa5b74c27a0 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 13 Jan 2025 18:40:36 +0100 Subject: [PATCH] jj: fancy 's' command as default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit new `util exec` is very nice 😀 --- home/dln/home.nix | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/home/dln/home.nix b/home/dln/home.nix index 0770df0..7c306b7 100644 --- a/home/dln/home.nix +++ b/home/dln/home.nix @@ -65,12 +65,7 @@ in }; ui = { - "default-command" = [ - "log" - "--limit=10" - "-T" - "builtin_log_comfortable" - ]; + "default-command" = [ "s" ]; pager = "delta"; }; @@ -112,23 +107,28 @@ in ]; d = [ "diff" - "--tool=difftu" + "--tool=difft" ]; dd = [ "diff" "--git" ]; - ds = [ + du = [ "diff" - "--tool=difft" - ]; - s = [ - "show" "--tool=difftu" ]; - ss = [ - "show" - "--tool=difft" + s = [ + "util" + "exec" + "--" + "bash" + "-c" + '' + printf '\e[38;5;240m\u2504%.0s\e[0m' $(seq 1 $(tput cols)) '\n' + jj show --stat + printf '\e[38;5;240m\u2504%.0s\e[0m' $(seq 1 $(tput cols)) '\n' + jj log --limit=15 -T builtin_log_comfortable + '' ]; };