From ee4a966a1a40e2b3fc58c68856269df09ddabfb7 Mon Sep 17 00:00:00 2001 From: Mike Nielson Date: Mon, 31 Aug 2026 21:17:20 -0700 Subject: [PATCH 1/3] chore(zsh): add aliases for vpn management --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index c3118eb..eff1709 100644 --- a/.zshrc +++ b/.zshrc @@ -127,6 +127,10 @@ export PATH="$HOME/.local/bin:/home/mike/.lando/bin:$PATH"; alias ldrush='lando drush' alias ld='lando drush' +# VPN aliases +alias vpn-on='openvpn3 session-start --config mnielson' +alias vpn-off='openvpn3 session-manage --disconnect -c mnielson' + # Antigravity (AGY) Aliases & Helpers alias ag="agy" From b8a8194ad7abc471105740080a226c5cf8783d97 Mon Sep 17 00:00:00 2001 From: Mike Nielson Date: Mon, 31 Aug 2026 21:17:50 -0700 Subject: [PATCH 2/3] feat(gcai): add ticket option support and pass diff via temporary file --- .zshrc | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 56 insertions(+), 9 deletions(-) diff --git a/.zshrc b/.zshrc index eff1709..d451b2b 100644 --- a/.zshrc +++ b/.zshrc @@ -147,6 +147,40 @@ agreview() { } gcai() { + local ticket="" + + while [[ $# -gt 0 ]]; do + case "$1" in + -t|--ticket) + if [[ -n "$2" && "$2" != -* ]]; then + ticket="$2" + shift 2 + else + echo "Error: -t/--ticket requires a ticket number argument." + return 1 + fi + ;; + -t=*|--ticket=*) + ticket="${1#*=}" + shift + ;; + -h|--help) + echo "Usage: gcai [-t|--ticket ] []" + echo "Generate an AI commit message for staged changes with optional ticket number prepended." + return 0 + ;; + *) + if [[ -z "$ticket" ]]; then + ticket="$1" + else + echo "Unknown option or extra argument: $1" + return 1 + fi + shift + ;; + esac + done + # Resolve the git repo root so agy runs with the correct context. local repo_root repo_root=$(git rev-parse --show-toplevel 2>/dev/null) @@ -161,12 +195,19 @@ gcai() { return 1 fi - echo "Generating commit message from staged changes..." - local diff msg - diff=$(git diff --cached) + if [[ -n "$ticket" ]]; then + echo "Generating commit message for ticket: $ticket..." + else + echo "Generating commit message from staged changes..." + fi + + local difffile msg + difffile=$(mktemp /tmp/gcai-diff-XXXXXX.patch) + git diff --cached > "$difffile" - # Embed the diff in the prompt — agy ignores piped stdin. - msg=$(agy --print "Write a commit message for the following staged diff using the Conventional Commits 1.0.0 specification (https://www.conventionalcommits.org/en/v1.0.0/). + # Write the diff to a file so agy can read it with its tools — + # inline embedding breaks on special chars and agy ignores piped stdin. + msg=$(agy --print "Read the git diff at $difffile and write a commit message using the Conventional Commits 1.0.0 specification. Format: [optional scope]: @@ -175,16 +216,22 @@ Rules: - scope is optional and describes the section of the codebase (e.g. parser, api) - description MUST be a concise imperative summary (lowercase, no period) - Do NOT include a body or footer unless the change is a BREAKING CHANGE -- Output ONLY the commit message — no quotes, backticks, markdown, or explanation - -Diff: -$diff") +- Output ONLY the commit message — no quotes, backticks, markdown, or explanation") + rm -f "$difffile" if [[ -z "$msg" ]]; then echo "Failed to generate a commit message." return 1 fi + if [[ -n "$ticket" ]]; then + if [[ "$ticket" == \[*\] ]] || [[ "$ticket" == *: ]]; then + msg="$ticket $msg" + else + msg="[$ticket] $msg" + fi + fi + echo "\n\033[1;36mSuggested commit message:\033[0m" echo "\033[0;33m$msg\033[0m\n" From d68d8e3ca70b2d54e005892a2c5d5e5c8ae7e200 Mon Sep 17 00:00:00 2001 From: Mike Nielson Date: Mon, 31 Aug 2026 21:18:16 -0700 Subject: [PATCH 3/3] chore(config): add monitors.xml configuration --- .config/monitors.xml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .config/monitors.xml diff --git a/.config/monitors.xml b/.config/monitors.xml new file mode 100644 index 0000000..6af9981 --- /dev/null +++ b/.config/monitors.xml @@ -0,0 +1,41 @@ + + + + 1503 + 0 + 1 + + + DP-4 + ACR + ED273UR + 0x00000000 + + + 2560 + 1440 + 59.951 + + + + + 0 + 438 + 1.5009980201721191 + yes + + + eDP-1 + BOE + 0x0bca + 0x00000000 + + + 2256 + 1504 + 59.999 + + + + +