From e285163442fac671685567db09a8da6a43f80ec4 Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Sun, 28 Dec 2025 18:38:38 +0000 Subject: [PATCH] bat + new zsh functions --- aichat/.config/aichat/models-override.yaml | 16 ++++++++++++++++ bat/.config/bat/config | 3 ++- ssh/.ssh/scalene-config | 1 + zsh/.local/share/zsh/functions/bh | 4 ++++ zsh/.local/share/zsh/functions/zkbat | 7 +++++++ zsh/.zshenv | 2 +- 6 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 zsh/.local/share/zsh/functions/bh create mode 100644 zsh/.local/share/zsh/functions/zkbat diff --git a/aichat/.config/aichat/models-override.yaml b/aichat/.config/aichat/models-override.yaml index 70c9d76..6649a26 100644 --- a/aichat/.config/aichat/models-override.yaml +++ b/aichat/.config/aichat/models-override.yaml @@ -203,6 +203,22 @@ list: max_batch_size: 100 - provider: gemini 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 type: chat max_input_tokens: 1048576 diff --git a/bat/.config/bat/config b/bat/.config/bat/config index 276b0a6..a6bfdf3 100644 --- a/bat/.config/bat/config +++ b/bat/.config/bat/config @@ -4,7 +4,8 @@ # Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-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 # terminal emulators (like tmux, by default): diff --git a/ssh/.ssh/scalene-config b/ssh/.ssh/scalene-config index 83baf0a..b57fa0a 100644 --- a/ssh/.ssh/scalene-config +++ b/ssh/.ssh/scalene-config @@ -8,6 +8,7 @@ Host tuulikki.scalene.net Host tonttu.scalene.net User jswank + Port 22024 Host www.scalene.net User scalene diff --git a/zsh/.local/share/zsh/functions/bh b/zsh/.local/share/zsh/functions/bh new file mode 100644 index 0000000..cdb4acd --- /dev/null +++ b/zsh/.local/share/zsh/functions/bh @@ -0,0 +1,4 @@ +# Wrap common commands or use a generic 'bh' (bat-help) function +bh() { + "$@" --help 2>&1 | bat -pl help +} diff --git a/zsh/.local/share/zsh/functions/zkbat b/zsh/.local/share/zsh/functions/zkbat new file mode 100644 index 0000000..6611857 --- /dev/null +++ b/zsh/.local/share/zsh/functions/zkbat @@ -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 +} + diff --git a/zsh/.zshenv b/zsh/.zshenv index dcecfef..15593dc 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -5,7 +5,7 @@ SAVEHIST=1000 export LANG=en_US.UTF-8 export EDITOR=vim 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 XDG_CONFIG_HOME=${HOME}/.config export FZF_DEFAULT_OPTS="--multi --height=40% --layout=reverse --preview='bat --color=always --style=numbers --line-range=:200 {}'"