zshrc-dev: add code alias; zshrc-natera: rewrite git switch main to master

Made-with: Cursor
This commit is contained in:
Eric Wagoner
2026-03-13 10:44:38 -04:00
parent 00e2330369
commit 5feba125d9
2 changed files with 10 additions and 0 deletions

View File

@@ -508,6 +508,7 @@ alias topcmd="history | awk '{print \$2}' | sort | uniq -c | sort -rn | head -10
# Helpful Aliases # Helpful Aliases
# ============================================================================ # ============================================================================
alias code='cursor .'
alias reload='source ~/.zshrc && echo "✅ Shell configuration reloaded"' alias reload='source ~/.zshrc && echo "✅ Shell configuration reloaded"'
alias editrc='cursor ~/dotfiles/zshrc' alias editrc='cursor ~/dotfiles/zshrc'
alias editdev='cursor ~/dotfiles/zshrc-dev' alias editdev='cursor ~/dotfiles/zshrc-dev'

View File

@@ -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: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' 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 # 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. # 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 [[ -f ~/dotfiles/zshrc-natera.private ]] && source ~/dotfiles/zshrc-natera.private