Skip to content

Instantly share code, notes, and snippets.

@Talor-A
Talor-A / git-llm.zsh
Created February 4, 2025 22:20
git-llm: automatically create commit messages. powered by `llm` by simon willison
#!/bin/zsh
# -----------------------------------------------------------------------------
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
generate_commit_message() {
# Get last 3 commit messages
last_commits=$(git log -3 --pretty=format:"- %s" 2>/dev/null)
git diff --cached | llm "
Below is a diff of all staged changes, coming from the command:
git
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /Users/ta/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/ta/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@Talor-A
Talor-A / talor.zsh-theme
Created June 9, 2026 22:39
talor.zsh-theme — oh-my-zsh custom theme with async prompts, jj/git integration, and vi-mode
#!/bin/zsh
setopt prompt_subst
export VIRTUAL_ENV_DISABLE_PROMPT=1
autoload -Uz colors
colors
# variables
@Talor-A
Talor-A / settings.json
Last active June 9, 2026 22:51
claude hook settings for jj
{
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "~/.dotfiles/dot-claude/hooks/on-prompt.sh"
}
]
@Talor-A
Talor-A / on-prompt.sh
Created June 9, 2026 22:52
claude hook for jj
#!/bin/sh
# Bail if not in a jj repo
jj root >/dev/null 2>&1 || exit 0
# Open a fresh empty change if the current one already has file changes.
# `jj try-new` is a custom alias (see dot-config/jj/config.toml) that prints
# "Current change is empty, not creating a new one" on stdout when it's a
# no-op — so we redirect stdout too, not just stderr.
jj try-new >/dev/null 2>&1
@Talor-A
Talor-A / SKILL.md
Last active July 13, 2026 22:28
avoid-constructions skill
name avoid-constructions
description Lists writing constructions to avoid — catchphrases, slogan-like rules, rhetorical framing, and filler phrasing. Use when drafting PR descriptions, commit messages, docs, comments, or any user-facing text where plain language is preferred.

Avoid these constructions

Use plain, direct language. Do not add phrases for style, emphasis, or tone when they do not add information.

Catchphrases and trailing emphasis