41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Oh My Zsh
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
ZSH_THEME="agnoster"
|
|
plugins=(git docker python pip uv vscode command-not-found zsh-autosuggestions zsh-syntax-highlighting)
|
|
source "$ZSH/oh-my-zsh.sh"
|
|
|
|
# User PATH
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
export EDITOR="${EDITOR:-nano}"
|
|
export MPLBACKEND="${MPLBACKEND:-Agg}"
|
|
|
|
# Source LiteLLM model presets if dotfiles delivered them
|
|
[ -f "$HOME/.config/models.env" ] && source "$HOME/.config/models.env"
|
|
|
|
# Aliases
|
|
alias ll='ls -lah --color=auto'
|
|
alias g='git'
|
|
alias gs='git status -sb'
|
|
alias gd='git diff'
|
|
alias gco='git checkout'
|
|
alias uvr='uv run'
|
|
alias uvs='uv sync'
|
|
|
|
# Model-switch aliases for aider (override per-call)
|
|
alias aider-code='AIDER_MODEL=$MODEL_CODE aider'
|
|
alias aider-big='AIDER_MODEL=$MODEL_BIG_CODE aider'
|
|
alias aider-reason='AIDER_MODEL=$MODEL_REASON aider'
|
|
alias aider-fast='AIDER_MODEL=$MODEL_FAST aider'
|
|
|
|
mkproj() {
|
|
local name="$1"
|
|
[ -z "$name" ] && echo 'usage: mkproj <name>' && return 1
|
|
mkdir -p "$HOME/work/$name" && cd "$HOME/work/$name" && uv init
|
|
}
|
|
|
|
# Docker — detach from a running attach with Ctrl+P, Ctrl+Q
|
|
alias dps='docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"'
|
|
alias da='docker attach'
|
|
alias dl='docker logs -f --tail=200'
|
|
alias de='docker exec -it'
|