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

@@ -203,6 +203,22 @@ list:
max_batch_size: 100 max_batch_size: 100
- provider: gemini - provider: gemini
models: models:
- name: gemini-3-flash-preview
type: chat
max_input_tokens: 1048576
input_price: 0.0
output_price: 0.0
max_output_tokens: 65536
supports_vision: true
supports_function_calling: true
- name: gemini-3-pro-preview
type: chat
max_input_tokens: 1048576
input_price: 0.0
output_price: 0.0
max_output_tokens: 65536
supports_vision: true
supports_function_calling: true
- name: gemini-2.5-flash - name: gemini-2.5-flash
type: chat type: chat
max_input_tokens: 1048576 max_input_tokens: 1048576

View File

@@ -4,7 +4,8 @@
# Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-themes` # Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-themes`
# for a list of all available themes # for a list of all available themes
--theme="base16" --theme="ansi"
#--theme="base16"
# Enable this to use italic text on the terminal. This is not supported on all # Enable this to use italic text on the terminal. This is not supported on all
# terminal emulators (like tmux, by default): # terminal emulators (like tmux, by default):

View File

@@ -8,6 +8,7 @@ Host tuulikki.scalene.net
Host tonttu.scalene.net Host tonttu.scalene.net
User jswank User jswank
Port 22024
Host www.scalene.net Host www.scalene.net
User scalene User scalene

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
}

View File

@@ -5,7 +5,7 @@ SAVEHIST=1000
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
export EDITOR=vim export EDITOR=vim
export VISUAL=${EDITOR} export VISUAL=${EDITOR}
export PAGER=less export PAGER=bat
export LESS=RX # R for ANSI color sequences, X to not clear screen on exit export LESS=RX # R for ANSI color sequences, X to not clear screen on exit
export XDG_CONFIG_HOME=${HOME}/.config export XDG_CONFIG_HOME=${HOME}/.config
export FZF_DEFAULT_OPTS="--multi --height=40% --layout=reverse --preview='bat --color=always --style=numbers --line-range=:200 {}'" export FZF_DEFAULT_OPTS="--multi --height=40% --layout=reverse --preview='bat --color=always --style=numbers --line-range=:200 {}'"