jj: pass args to 's' alias

This commit is contained in:
Daniel Lundin 2025-01-15 14:40:47 +01:00
parent 62246715bb
commit 6b1a4b5d04
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -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
''
""
];
};