Files
dotfiles/zshrc-natera
2026-03-14 13:22:13 -04:00

52 lines
2.0 KiB
Plaintext

# Natera-specific environment and tooling
# Sourced last from .zshrc on Natera machines (when this file is present).
# All Natera config lives here only.
# PATH for Natera/Claude tooling
export PATH="$HOME/.local/bin:$PATH"
# Claude Code (Bedrock)
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-west-2
export ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION=us-west-2
export ANTHROPIC_MODEL=global.anthropic.claude-opus-4-6-v1
export ANTHROPIC_SMALL_FAST_MODEL=global.anthropic.claude-haiku-4-5-20251001-v1:0
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000
# OpenTelemetry (Natera staging)
export OTEL_METRICS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_RESOURCE_ATTRIBUTES="user.email=$USER@natera.com"
# Project-specific aliases
alias workbench='cd ~/work/rosalis'
alias core='cd ~/work/yalp-core'
alias histo='cd ~/work/yalp-histology'
alias pipeline='cd ~/work/yalp-pipeline-integration'
alias assayapi='cd ~/work/yalp-assay-qc-api'
alias assay='cd ~/work/yalp-assay-qc'
alias lvsync='cd ~/work/yalp-lv-sync'
# YALP Core development aliases
alias yalp:db:password='core && yalp-db-pw-dev | pbcopy'
alias yalp:db:rebuild='core && make local_db_destroy && make local_db_init && make local_db_start'
alias yalp:db:start='core && make local_db_start'
alias yalp:db:stop='core && make local_db_stop'
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