bat + new zsh functions

This commit is contained in:
Jason Swank
2025-12-28 18:38:38 +00:00
parent 5b27f75da8
commit e285163442
6 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
# Wrap common commands or use a generic 'bh' (bat-help) function
bh() {
"$@" --help 2>&1 | bat -pl help
}

View File

@@ -0,0 +1,7 @@
# A simple wrapper around `zk list` to select & view a note
zkbat() {
filename=$(zk list "$@" --interactive -f jsonl | jq -r .absPath )
bat $filename
echo $filename >&2
}