From 5feba125d989e6c5fc88f6a7bef159db30f3b232 Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Fri, 13 Mar 2026 10:44:38 -0400 Subject: [PATCH] zshrc-dev: add code alias; zshrc-natera: rewrite git switch main to master Made-with: Cursor --- zshrc-dev | 1 + zshrc-natera | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/zshrc-dev b/zshrc-dev index ab54d83..ab301ed 100644 --- a/zshrc-dev +++ b/zshrc-dev @@ -508,6 +508,7 @@ alias topcmd="history | awk '{print \$2}' | sort | uniq -c | sort -rn | head -10 # Helpful Aliases # ============================================================================ +alias code='cursor .' alias reload='source ~/.zshrc && echo "✅ Shell configuration reloaded"' alias editrc='cursor ~/dotfiles/zshrc' alias editdev='cursor ~/dotfiles/zshrc-dev' diff --git a/zshrc-natera b/zshrc-natera index e4e5e61..5403a7f 100644 --- a/zshrc-natera +++ b/zshrc-natera @@ -38,6 +38,15 @@ alias yalp:api='core && make local_run_api' alias yalp:psql='core && docker exec -it yalp-core-postgres psql -U postgres -d yalp_core_db' alias yalp:start='core && make local_db_start && make local_run_api' +# Natera repos use master as primary; rewrite "git switch main" to "git switch master" +git() { + if [[ "$1" == "switch" && "${2:-}" == "main" ]]; then + command git switch master "${@:3}" + else + command git "$@" + fi +} + # Sensitive values (AWS profile, OTEL endpoint, cert paths, refresh alias) are in zshrc-natera.private # Copy zshrc-natera.private.example to zshrc-natera.private and fill in. That file is gitignored. [[ -f ~/dotfiles/zshrc-natera.private ]] && source ~/dotfiles/zshrc-natera.private