From 6b1a4b5d043a126996001f1a4b41cefded4b184e 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/dln/home.nix b/home/dln/home.nix index 7c306b7..f64681d 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 printf '\e[38;5;240m\u2504%.0s\e[0m' $(seq 1 $(tput cols)) '\n' jj log --limit=15 -T builtin_log_comfortable '' + "" ]; };