From 7c53ec032bdca106afb8f38050e783bc0452a06d Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 15 Jan 2025 14:40:47 +0100 Subject: [PATCH] jj: pass args to 's' alias --- home/dln/home.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home/dln/home.nix b/home/dln/home.nix index 7c306b7..89e8813 100644 --- a/home/dln/home.nix +++ b/home/dln/home.nix @@ -124,11 +124,17 @@ in "bash" "-c" '' + #!/usr/bin/env bash + set -eo pipefail + if [ -n "$1" ]; then + exec jj show --stat --tool=difft "$@" + fi printf '\e[38;5;240m\u2504%.0s\e[0m' $(seq 1 $(tput cols)) '\n' - jj show --stat + 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 '' + "" ]; };