From 04c1be5694b82178ce956645cc6c9f22731e61cb Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon Date: Sun, 10 Aug 2025 20:06:37 -0400 Subject: [PATCH] more misc edits --- home/bin/executable_checkout-workspace.sh | 71 +++++++++++ home/dot_aider.conf.yml.tmpl | 2 - home/dot_zshrc.tmpl | 3 + home/encrypted_dot_zshklaviyo.age | 131 ++++++++++---------- home/private_dot_config/jj/config.toml.tmpl | 7 +- 5 files changed, 146 insertions(+), 68 deletions(-) create mode 100644 home/bin/executable_checkout-workspace.sh diff --git a/home/bin/executable_checkout-workspace.sh b/home/bin/executable_checkout-workspace.sh new file mode 100644 index 0000000..e053de0 --- /dev/null +++ b/home/bin/executable_checkout-workspace.sh @@ -0,0 +1,71 @@ +#!/usr/bin/env bash + +if [[ "$1" == "--help" || "$1" == "-h" ]]; then + echo "usage: $0 " + echo "example: $0 k-repo foo-branch1" + exit 0 +fi + +if [ $# -lt 1 ] || [ $# -gt 2 ]; then + echo "error: invalid number of arguments" + echo "usage: $0 " + echo "run with --help for more information" + exit 1 +fi + +REPO_NAME="$1" +BRANCH_NAME="$2" + +REPO_PATH="$HOME/Klaviyo/Repos/$REPO_NAME" + +if [ ! -d "$REPO_PATH" ]; then + echo "error: repository directory does not exist: $REPO_PATH" + exit 1 +fi + +cd "$REPO_PATH" || exit 1 + +if [ $# -eq 1 ]; then + echo "no branch name provided. listing github prs..." + + PR_LIST=$(gh pr list --limit 300 --json number,title,headRefName \ + --template '{{range .}}{{.number}} | {{.title}} |{{.headRefName}}{{"\n"}}{{end}}') + + if [ -z "$PR_LIST" ]; then + echo "error: failed to fetch pr list from github" + exit 1 + fi + + SELECTED_PR=$(echo "$PR_LIST" | fzf --delimiter='|' --with-nth=1,2 --prompt='pick a github pr > ' | awk -F'|' '{print $3}') + + if [ -z "$SELECTED_PR" ]; then + echo "no pr selected" + exit 1 + fi + + BRANCH_NAME="$SELECTED_PR" +fi + +# Escape branch name for filesystem use +SAFE_BRANCH_NAME=$(echo "$BRANCH_NAME" | sed 's/\//_/g' | sed 's/+/-/g') + +PR_NUMBER="" +if [ -n "$BRANCH_NAME" ]; then + PR_NUMBER=$(echo "$PR_LIST" | grep "|.*$BRANCH_NAME$" | awk -F'|' '{print $1}' | head -1 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') +fi + +jj git fetch || exit 1 +PARENT_DIR="$HOME/projects/work/reviews/$REPO_NAME" +mkdir -p "$PARENT_DIR" || exit 1 + +if [ -n "$PR_NUMBER" ]; then + WORKSPACE_DIR="$PARENT_DIR/${PR_NUMBER}_${SAFE_BRANCH_NAME}" +else + WORKSPACE_DIR="$PARENT_DIR/$SAFE_BRANCH_NAME" +fi + +jj workspace add "$WORKSPACE_DIR" -r "$BRANCH_NAME@origin" || exit 1 +echo "successfully created workspace for $REPO_NAME/$BRANCH_NAME" + +prr get "klaviyo/$REPO_NAME/$PR_NUMBER" +echo "cd $WORKSPACE_DIR && prr edit klaviyo/$REPO_NAME/$PR_NUMBER" diff --git a/home/dot_aider.conf.yml.tmpl b/home/dot_aider.conf.yml.tmpl index 20d881e..8f88d8f 100644 --- a/home/dot_aider.conf.yml.tmpl +++ b/home/dot_aider.conf.yml.tmpl @@ -1,5 +1,3 @@ -model: openai/qwen/qwen3-coder-30b - cache-prompts: true gitignore: false auto-commits: false diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index 48a0dc3..7182ed7 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -97,3 +97,6 @@ find_note() { git log --oneline -G"$1" } + +alias aider-gh="aider --openai-api-base $GH_OPENAI_BASE_URL --openai-api-key $GH_OPENAI_API_KEY --model $GH_OPENAI_MODEL --no-git" +alias aider-lms="aider --openai-api-base $LMS_OPENAI_BASE_URL --openai-api-key $LMS_OPENAI_API_KEY --model openai/$LMS_OPENAI_MODEL --no-git" diff --git a/home/encrypted_dot_zshklaviyo.age b/home/encrypted_dot_zshklaviyo.age index 55ee961..c6b477f 100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BqlQVHpQ7GzP61iWDHrMILcnZzH +GTvrUJYKbsmiJ2WX0XSvh+1fn5xHy6ES66PeAc5LLI9pHRyV4RYtzT1q696uodEt +YVN8RjNWBkpl5+YPw3sN5zevaT6QoOxGo81UX89OR5vhmvxKW+2upWwvKkL9otuK +iQyvKo/aEw7UTs3BzLiTOa3e7VKvo9DMjFqcJJ2uHuxezDBsaTvEm8vV9TZsyx4C +Y7xajvlI8YRQRM80geMiD5aDqtfsft/fKAhjser2GQ+fwvxe1ULzRklTNHRm0d41 +S4GO1x6S7tXmX3nyFg7lVkJjbyFPrgK36t3grIRhB5XKOGQTiMSbu9fK++Z4+ems +lx4SqpHnWS4lrli9sOEfHj/yGtyxpG5ECVwU5fxjoXvKU3NMg2YFr79kvZ2obDOf +5NROMTBSKctzVivAmABmYKvga7n/gjkTHwwFD3r8NUbOAtm1MRN/RMh/ozNmmSRY +plVTzc8kz34x8htvHP1fK60vaMoBTZJxx3OAeNrzxUdaA/INAbSuXosQxDaqAoGL +0si+h4zqbCRMc3fQspK2mtL4WcGhfRC0WjXZc8PAI1UJrMFxUzJwr3jM8Khpsuad +IM9ZhrMWQJ/sTW7Yem/UluCfArEa/iXjV4ZtPxcgeQZrCp7R0dfXnaFVpl2QtSAt +AECVV6SEd+6lpPIkPxdTPC3cgV0NBGLY7JbSsIinVUqzFcVkqh3keMFNyNs3xzoF +XHF5B13S4NLRCxBZIliLiPvpiFXZpnW0b/vqAp1w9sSflwi9Ouvp+TjrTvZaUXVF +loiexBxhUUPcr6FNPJu8H0RH5nnsJ1O+zUXM5X4Qt2+g90JPa2I9fcD/HnGH80y1 +iikaCUOhzlDkDi5sqrB4CiaDNiWytKJYba5nPDKNrJrUqeSeLrx0r+2M4KskBh4p +7qHQhT4EmhWTLQHm4PtZLFprssjCLxZZ03GlseCif530rhx4VD5KDaIdXRKi5Yl2 +C5eDpMEGZt4Mq2ny1/E= -----END AGE ENCRYPTED FILE----- diff --git a/home/private_dot_config/jj/config.toml.tmpl b/home/private_dot_config/jj/config.toml.tmpl index 737c147..03b599f 100644 --- a/home/private_dot_config/jj/config.toml.tmpl +++ b/home/private_dot_config/jj/config.toml.tmpl @@ -13,9 +13,14 @@ git_push_bookmark = '"{{ .github_personal }}_jj_" ++ change_id.short()' "diff added token" = { fg = "green", underline = false } [revset-aliases] -"stack()" = "trunk()..@" "immutable_heads()" = "builtin_immutable_heads() | (trunk().. & ~mine())" +[aliases] +l = ["log", "-r", "(trunk()..@):: | (trunk()..@)-"] +refresh = ["rebase", "-s", "roots(trunk()..@)", "-d", "trunk()"] +insert = ["rebase", "-r", "@", "--before", "merge", "--after", "trunk()"] +bdiff = ["diff", "-r", "(trunk()..@)::"] + [ui] default-command = ["log"] diff-formatter = ":git"