diff --git a/Brewfile b/Brewfile index 8054604..0d004fb 100644 --- a/Brewfile +++ b/Brewfile @@ -10,7 +10,6 @@ brew "lsd" brew "lua" brew "neovim" brew "mosh" -brew "node" brew "postgresql@17" brew "pre-commit" brew "tmux" diff --git a/bashrc b/bashrc index 836a834..432fa67 100644 --- a/bashrc +++ b/bashrc @@ -1,8 +1,6 @@ # ---- # Basics -set -o vi - export LANG='en_US.UTF-8' # Ask uv to check resolved packages against malicious-package advisories. diff --git a/zshrc b/zshrc index 634c578..60c8323 100644 --- a/zshrc +++ b/zshrc @@ -1,5 +1,82 @@ # Basics -source ~/.bashrc +# bashrc is no longer sourced from zshrc (bash-specific syntax can break under zsh). +# The shared aliases/exports below are inlined here; a follow-up extracts them to shared.sh. + +export LANG='en_US.UTF-8' +export XDG_CONFIG_HOME="$HOME/dotfiles" +export GPG_TTY=$(tty) + +# Homebrew (Intel + ARM) PATH +export PATH="/usr/local/bin:${PATH}" +export PATH="/opt/homebrew/bin:${PATH}" +# Postgres +export PATH="$(brew --prefix postgresql@17)/bin:${PATH}" + +# Aliases — general +alias vi=nvim +alias vim=nvim +alias ls="lsd -al" +alias claude="$HOME/.local/bin/claude" + +# Aliases — Docker +alias d='docker' +alias dc='docker compose' +alias dcup='docker compose up' +alias dsp='docker system prune --all --force' +alias docker_rmi_dangling='docker rmi $(docker images -qa -f "dangling=true") -f' + +# Aliases — python +alias python='python3.11' +alias python3='python3.11' +alias pip='python3.11 -m pip' +alias pip3='pip' +alias grepy='grep -r --include \*.py' +alias greps='grep -r --include \*.sql' +alias jpn='jupyter notebook' +function ver { + pip list | grep $1 +} + +# Aliases — git +alias g='git status' +alias gs='git status' +alias gf='git fetch' +alias gm='git merge' +alias ga='git add' +alias gb='git branch' +alias gc='git commit' +alias gck='git checkout' +alias gckb='git checkout -b' +alias gd='git diff' +alias gg='git grep' +alias gl='git log --reverse -n 10' +alias gpl='git pull' +alias gp='git push' +alias gdm='git diff main' +alias gdnm='git diff --name-only origin/main' +alias gcap='git checkout main && git pull' + +# Aliases — kube +alias ku='kubectl' +alias kuc='kubectl config' + +# Aliases — dbt +alias docs="dbt docs generate; dbt docs serve" +alias dbtb="dbt build" +alias dbtc="dbt compile" +alias dbtr="dbt run" + +# Aliases — rust +alias cb="cargo build" +alias cr="cargo run" +alias ct="cargo test" + +# Aliases — modal +alias md="modal deploy" +alias mr="modal run" + +# Aliases — terraform +alias tf="terraform" export ZSH="$HOME/.oh-my-zsh" export UPDATE_ZSH_DAYS=13 @@ -25,9 +102,9 @@ HIST_STAMPS="mm/dd/yyyy" COMPLETION_WAITING_DOTS="false" # Plugins -plugins=( - git -) +# (OMZ git plugin removed — it loads after the custom git aliases above and was +# shadowing them, e.g. its gl='git pull' clobbered gl='git log --reverse -n 10') +plugins=() bindkey -e bindkey "^[begin" backward-word