zshrc-dev: add code alias; zshrc-natera: rewrite git switch main to master
Made-with: Cursor
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user